c# - Simulate a request from a IE Client with WebClient class? -
I am downloading the file with the web client class in .NET 3.5. I would like to make sure that on the server side, The requested files appear to be downloaded from an IE client. What exactly do I want to change?
Do I have to copy the header information generated by IE into the header property of the Webmail object? Do I need to do something else?
Thanks
According to your needs, just be enough to set user agent header One example is
Comments
Post a Comment