HttpWebRequest doesnt work but WebClient does ?? Why??
Posted on 2006-10-27
I have a file on my server that produces a certain sha1 hashcode.
but when i download that same file using httpwebrequest the downloaded file has a different hashcode?
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(bu);
HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse();
but if I use the WEBCLIENT class instead i get the correct hashcode !!
so am i missing some specification info for the httpwebrequest object maybe?
i am using vs2005
i need to be able to use the httpwebrequest