WebClient.DownloadString Method
.NET Framework 2.0
Downloads the specified resource as a String or a Uri.
| Name | Description |
|---|---|
| WebClient.DownloadString (String) | Downloads the specified resource as a String. |
| WebClient.DownloadString (Uri) | Downloads the specified resource as a Uri. |
Download string ignores response content type
There is a small bug in WebClient.DownloadString (and UploadString, and the Async versions).
These do not use the ContentType from the response when decoding the response content (bytes) to a string. They assume that the encoding is the encoding in the request.
These do not use the ContentType from the response when decoding the response content (bytes) to a string. They assume that the encoding is the encoding in the request.
- 12/16/2011
- Barney Hawes
- 4/2/2012
- Thomas Lee