HttpClient
Available in older version of .NET
.NET 4.5 only. Created to support the growing need of the Web API REST calls
WinRT applications cannot use WebClient
HttpClient can be used with WinRT
Provides progress reporting for downloads.
No progress reporting for downloads.
Does not reuse resolved DNS, configured-cookies.
Can resuse resolved DNS, cookie configuration and other authentication.
You need to new up a WebClient to make concurrent request.
Single HttpClient can make concurrent requests.
Thin layer over WebRequest and WebResponse
Thin layer over HttpWebRequest and HttpWebResponse
Mocking and testing WebClient is difficult
Mocking and testing HttpClient is easy
Supports FTP.
No support for FTP.
Both synchronous and Asynchronous methods are available for IO bound requests.
All IO bound methods in HTTPClient are asynchronous.
原文地址:http://blogs.k10world.com/technology/webclient-httpclient-consume-http-requests/
来源URL:http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c4380146d96864968d4e414c4224603103ab6e07b604a57ce963c215afe170bf7a6613464587ef686ce8e49d8bc98232c9c6269304a891005d318b8cb37609670875b99fe47bcedac7484aea389991211dd52752bdeabdc0646&p=8b2a9711838911a058ee930c5859c4&newp=8b2a9714949909f01abd9b7e0e1189231610db2151d7d31f2e96c900cc26&user=baidu&fm=sc&query=c%23+webclient+httpclient&qid=bf97647c00685ae9&p1=5