I am downloading files with the WebClient class in .NET 3.5. I would like to be sure that on the server side, the files requested appear to be downloaded with a IE client. What do I have to change exactly?
Do I have simply to copy the header information generated by IE to the Header property of the WebClient object? Is there anything else I need to do?
Thanks
Depending on your needs, just setting the user agent header might be enough. There is an example at http://msdn.microsoft.com/en-us/library/system.net.webclient(VS.80).aspx