Downloading file using WebRequest

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

Is System.Net.WebRequest the correct class that I can use for downloading
file over http? I can easily get a page contents using that class but have
no way to get a file from the web server. Can anyone give me an idea how I
can do that?

Thanks for any help,

Tedmond
 
An Http Request is a request for a file. When you download a page, you are
downloading a file with a .htm or similar extension.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 
when I got the HttpWebResponse, how can I get the filename and save the
stream data into file?
 
Back
Top