How I can set a header in the webClient class? I tried:
webClient
client.Headers[\"Content-Type\"] = \"image/jpeg\";
that throws a
You cannot change the Content-Type if you use the UploadValues method, it must be application/x-www-form-urlencoded, see webclient source code