How I can set a header in the webClient class? I tried:
webClient
client.Headers[\"Content-Type\"] = \"image/jpeg\";
that throws a
Have you tried this syntax: client.Headers.Add("Content-Type", "image/jpeg");
client.Headers.Add("Content-Type", "image/jpeg");
What's your stack trace? At what point are you setting this? And what version of IIS/OS are you running under?