tagged [httpclient]
Whats the difference between HttpClient.Timeout and using the WebRequestHandler timeout properties?
Whats the difference between HttpClient.Timeout and using the WebRequestHandler timeout properties? I can set the timeout of my `HttpClient` object directly with `HttpClient.Timeout` but I've recently...
- Modified
- 11 Oct at 09:56
System.Net.Http vs Microsoft.Net.Http
System.Net.Http vs Microsoft.Net.Http I am using ASP.NET Core. I want to use `HttpClient` but I noticed that there are two NuGet packages being offered. Which one do I use? - [System.Net.Http](https:/...
- Modified
- 22 Jan at 14:36
How to consume HttpClient from F#?
How to consume HttpClient from F#? I'm new to F# and stuck in understanding async in F# from the perspective of a C# developer. Say having the following snippet in C#: How to write the same in F#?
- Modified
- 4 Oct at 17:11
.NET HttpClient. How to POST string value?
.NET HttpClient. How to POST string value? How can I create using C# and HttpClient the following POST request: ![User-Agent: Fiddler Content-type: application/x-www-form-urlencoded Host: localhost:67...
- Modified
- 27 May at 15:57
How to use HttpClientHandler with HttpClientFactory in .NET Core
How to use HttpClientHandler with HttpClientFactory in .NET Core I want to use the `HttpClientFactory` that is available in .NET Core 2.1 but I also want to use the `HttpClientHandler` to utilize the ...
- Modified
- 7 Jun at 18:20
How can I get System.Net.Http.HttpClient to not follow 302 redirects?
How can I get System.Net.Http.HttpClient to not follow 302 redirects? Using [HttpClient from NuGet](http://nuget.org/packages/HttpClient). The app sends a post with client.PostAsync(). I'd like it to ...
- Modified
- 23 May at 12:2
Print contents of HttpParams / HttpUriRequest?
Print contents of HttpParams / HttpUriRequest? I have an [HttpUriRequest](http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/index.html?org/apache/http/client/methods/HttpUriRequest.html...
- Modified
- 28 Feb at 18:44
PHP GuzzleHttp. How to make a post request with params?
PHP GuzzleHttp. How to make a post request with params? How to make a post request with GuzzleHttp( version 5.0 ). I am trying to do the following: But I am getting the
- Modified
- 22 Mar at 01:30
Add client certificate to .NET Core HttpClient
Add client certificate to .NET Core HttpClient I was playing around with .NET Core and building an API that utilizes payment APIs. There's a client certificate that needs to be added to the request fo...
- Modified
- 10 Oct at 14:50
Default and specific request timeout
Default and specific request timeout Usually it's desirable to have default timeout (e.g. 30s) that will be applied to all requests and can be overridden for particular requests (e.g. 600s). There's n...
- Modified
- 5 Mar at 17:12
HttpClient HttpResponseMessage Address / URI
HttpClient HttpResponseMessage Address / URI I am developing a C# WinRT application that makes POST and GET requests to a webserver. Does anyone know if there is a way to get the Response URI / Addre...
- Modified
- 26 Jul at 20:7
Post an empty body to REST API via HttpClient
Post an empty body to REST API via HttpClient The API I'm trying to call requires a POST with an empty body. I'm using the WCF Web API HttpClient, and I can't find the right code that will post with a...
- Modified
- 29 Dec at 03:5
Why use HttpClient for Synchronous Connection
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 XML response. I can see the benefits of using `HttpClient` f...
- Modified
- 7 Nov at 09:11
How do I do a patch request using HttpClient in dotnet core?
How do I do a patch request using HttpClient in dotnet core? I am trying to create a `Patch` request with the`HttpClient` in dotnet core. I have found the other methods, but can't seem to find the `Pa...
- Modified
- 8 Jan at 02:35
Should I await ReadAsStringAsync() if I awaited the response that I'm performing ReadAsStringAsync() on?
Should I await ReadAsStringAsync() if I awaited the response that I'm performing ReadAsStringAsync() on? Should I `ReadAsStringAsync()` if I the response on which I'm performing `ReadAsStringAsync()`?...
- Modified
- 13 Jan at 22:5
JsonParseException : Illegal unquoted character ((CTRL-CHAR, code 10)
JsonParseException : Illegal unquoted character ((CTRL-CHAR, code 10) I'm trying to use `org.apache.httpcomponents` to consume a Rest API, which will post JSON format data to API. I get this exception...
- Modified
- 23 Jan at 19:12
HttpClient has no definition for GetJsonAsync
HttpClient has no definition for GetJsonAsync I'm currently tapping into Blazor, and want to move my code so it's more readable and reusable. In my razor component, the Method works flawlessly - in a ...
- Modified
- 9 Dec at 08:25
Adding Http Headers to HttpClient
Adding Http Headers to HttpClient I need to add http headers to the HttpClient before I send a request to a web service. How do I do that for an individual request (as opposed to on the HttpClient to ...
- Modified
- 3 Jun at 07:38
How to get last url from HttpClient?
How to get last url from HttpClient? OK, i was recently switch to .NET framework 4.5 and start using HttpClient instead of HttpWebRequest & Response. I really love that async/await style but i don't k...
- Modified
- 28 Apr at 17:40
Httpclient This instance has already started one or more requests. Properties can only be modified before sending the first request
Httpclient This instance has already started one or more requests. Properties can only be modified before sending the first request I am creating an application in .Net Core 2.1 and I am using http cl...
- Modified
- 23 Jul at 13:7
System.Net.Http.HttpClient Disable Caching (.Net Standart Project)
System.Net.Http.HttpClient Disable Caching (.Net Standart Project) In my .NET Standard project I'm using `System.Net.Http.HttpClient`. How can I disable all caching (request caching especially) in `Ht...
- Modified
- 27 Dec at 06:47
How can I tell when HttpClient has timed out?
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 I not looking in the right place, or am I missing some...
- Modified
- 20 Jun at 09:12
HttpClient GetStreamAsync and HTTP status codes?
HttpClient GetStreamAsync and HTTP status codes? I wish to use streams as recommended by the [json.net performance tips documentation](http://www.newtonsoft.com/json/help/html/Performance.htm), howeve...
- Modified
- 24 Jul at 17:48
Custom header to HttpClient request
Custom header to HttpClient request How do I add a custom header to a `HttpClient` request? I am using `PostAsJsonAsync` method to post the JSON. The custom header that I would need to be added is Thi...
- Modified
- 16 Jul at 14:16
Re-Send HttpRequestMessage - Exception
Re-Send HttpRequestMessage - Exception I want to send the exact same request more than once, for example: Sending the req
- Modified
- 15 Nov at 12:37