Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

WebBrowser control and HttpRequest

$
0
0

Hi,

I am trying to automate a file download from one of the applications (it's an Java application).I am able to reach till download link using web-browser control. Since the downlaod link opens up a "Save file dialog" , my automation does not work fully.So to overcome this I use httprequest/webclient from the URL generated from webbrowser control.However in the Httprequest.getresponse, I never get the attachment file - I get an html saying "system error".

My tries:

I have tried every possible solution, by sending all headers - I see the exact request being created from IE browser vs my Webbrowser control (confirmed using Fiddler).Only difference is the content-length, but I am not able to understand why this difference - what exactly is being missed in the Request header.

Any help/pointers on this would be useful.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>