Design issue

I need to download a file from the Internet. Which way is preferable

  • WebRequest / WebResponse
  • Webclient

Rick

+1
source share
2 answers

WebClient simpler and provides a DownloadFile method that should do what you want.

If you need more control over the process, you can switch to using WebRequest . WebClient - a wrapper around WebRequest / WebResponse .

+5
source share

WebClient will be easier to operate, although it will offer less control.

+1
source share

All Articles