[Mono-list] HTTP file download

Robert Jordan robertj at gmx.net
Sat Apr 25 10:07:58 EDT 2009


giancarlogiesa wrote:
> Hello,
> 
> is possible with C# / Mono download a file from an HTTP server ?
> if yes, how ?

WebClient wc = new WebClient();
byte[] content = wc.DownloadData(url);

or

wc.DownloadFile(url, fileName).

Just look at WebClient docs.

Robert



More information about the Mono-list mailing list