Top "Dotnet-httpclient" questions

Refers to the System.

Deserialize JSON to Array or List with HTTPClient .ReadAsAsync using .NET 4.0 Task pattern

I'm trying to deserialize the JSON returned from http://api.usa.gov/jobs/search.json?query=nursing+jobs using the .…

c# json asp.net-mvc-4 task-parallel-library dotnet-httpclient
HttpClient - A task was cancelled?

It works fine when have one or two tasks however throws an error "A task was cancelled" when we have …

c# task-parallel-library dotnet-httpclient
Why use HttpClient for Synchronous Connection

I am building a class library to interact with an API. I need to call the API and process the …

c# asp.net dotnet-httpclient
Deciding between HttpClient and WebClient

Our web app is running in .Net Framework 4.0. The UI calls controller methods through ajax calls. We need to consume …

c# .net rest webclient dotnet-httpclient
Adding Http Headers to HttpClient

All: I need to add http headers to the HttpClient before I send a request to a web service. How …

c# asp.net-web-api dotnet-httpclient
Pass multiple complex objects to a post/put Web API method

Can some please help me to know how to pass multiple objects from a C# console app to Web API …

c# asp.net asp.net-web-api asp.net-web-api2 dotnet-httpclient
Do HttpClient and HttpClientHandler have to be disposed between requests?

System.Net.Http.HttpClient and System.Net.Http.HttpClientHandler in .NET Framework 4.5 implement IDisposable (via System.Net.Http.HttpMessageInvoker). The …

c# .net-4.5 idisposable using dotnet-httpclient
How can I tell when HttpClient has timed out?

As far as I can tell, there's no way to know that it's specifically a timeout that has occurred. Am …

c# timeout dotnet-httpclient
How to post data using HttpClient?

I have got this HttpClient from Nuget. When I want to get data I do it this way: var response = …

c# windows-phone-7 windows-phone-8 windows-phone dotnet-httpclient
Why is HttpClient BaseAddress not working?

Consider the following code, where the BaseAddress defines a partial URI path. using (var handler = new HttpClientHandler()) using (var client = …

c# .net dotnet-httpclient