c# - can app containing WebBrowser control download files automatically by spoofing browser behavior? -
Suppose that I want to automatically download a file from a URL which is located within the authentication-required website, in which I Automatic webbrowser control based on Internet Explorer but once I am there and have got the link to the file, if I navigate directly to it and try to download it through IE 6, then "Do you want to open this file or Save Do not want "modal dialog and if I C # Vebclent using Class I try to download it, so it did not work, which had been downloaded was a small part of the non-expressive JavaScript. In fact, by curiosity I tested the weblick method in an attempt to download the attachment to the Gmail website, and it did not work either (I could capture them via GOP's POP3 interface, this was just an experiment).
OK, so it thinks about everyone's underlying mechanics. First of all, maybe I'm using WebClient incorrectly? Or maybe there are some other standard C # classes for downloading files in such situations?
If not, it is possible for the app to deceive browser behavior so that the server will feel that the request for the file came from it, even if it really is from the second part of the same process Is it? What exactly is the browser doing in this situation that allows you to download the file, while WebLikel can not do it? If you ever want to understand the difference between two network programs, you will have to look at network traffic. Use to see what each program is doing or compare something like that, then compare two.
Comments
Post a Comment