1

I have this code:

           string session = "SomeSessionCode";
           WebClient wac = new WebClient();
           wac.Headers["Cookie"] = "pu=1; pk=; sid="+session;
           wac.DownloadFile(url, filepathname);

is it correct to use Cookie header like this or i'm doing something wrong?

thanks

Desolator
  • 22,411
  • 20
  • 73
  • 96
  • see http://stackoverflow.com/questions/2825377/how-can-i-get-the-webclient-to-use-cookies for answers. – David May 02 '12 at 06:42

0 Answers0