Since WebClient's uploadData doesn't encode data, then what will be the effect of adding a “Content-Type”, “multipart/form-data” header to it
C#'s uploadData method doesn't encode the data that is being sent. So, if I send a file over (after converting it into bytes) using this method, and the receiving side is looking for a multiform/form-data post, then it will obviously not work. Will adding a header like : WebClient c = new WebClient(); c.Headers.Add("Content-Type", "multipart/form-data"); make it send the data encrypted as multiform, or will the data be still not encrypted (and hence unparseable by servers expecting multiform data) ? Note that I can't use WebClient's uploadFile , as I don't have permission to get the file path