Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Web browser control HTTP Download

0 views
Skip to first unread message

NG

unread,
Nov 4, 2005, 3:45:02 AM11/4/05
to
Hi All,
I have a C# application which has a web browser control. I use Navigate
method to open the specified URL which works fine with html content url's.
However, now I want to do HTTP download as well. When I try using navigate
method with the url of the file(zip file in my case), I get a popup dialog
box (save/open/cancel). Is there a way to facilitate this http download
without having this download dialog box popping up? I want to
programmatically specify the destination folder and file name where the file
downloaded should be saved.
Any help is much appreciated.
Thanks,
Nitesh


Igor Tandetnik

unread,
Nov 4, 2005, 10:16:11 PM11/4/05
to
"NG" <xgniteshATyahooDOTcom> wrote in message
news:eytknwR...@TK2MSFTNGP15.phx.gbl

> Is there a way
> to facilitate this http download without having this download dialog
> box popping up? I want to programmatically specify the destination
> folder and file name where the file downloaded should be saved.

UrlDownloadToFile. Or, since you say you are using C#, see
WebRequest.Create, WebRequest.GetResponse,
WebResponse.GetResponseStream. Once you have the server response in a
stream, it should be trivial to save it to a file.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


NG

unread,
Nov 7, 2005, 3:46:35 AM11/7/05
to
Thanks Igor.


0 new messages