Reputation: 25768
Someone recommend us to use HttpClient rather than HttpWebRequest in the code. I am wondering from which version does HttpClient get supported?
I searched, http://msdn.microsoft.com/en-us/library/system.net.http.httpclient.aspx
Does it only from 4.5?
Upvotes: 1
Views: 257
Reputation: 1138
Yes, it is a new class in Framework 4.5
HttpClient
A new class called HttpClient has been added to make working with HTTP requests much easier. For more info, see Making apps social and connected with HTTP services and.
What's New in Windows Communication Foundation 4.5
Upvotes: 2
Reputation: 564641
It's only supported in .NET 4.5.
However, it is available for .NET 4 as part of the Web API, including the source code of via a NuGet package.
Upvotes: 4