Adam Lee
Adam Lee

Reputation: 25768

From which version does httpclient get supported in .Net

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

Answers (2)

estebane97
estebane97

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

Reed Copsey
Reed Copsey

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

Related Questions