Top "Httpclient" questions

DO NOT USE - Use [apache-commons-httpclient], [apache-httpclient-4.x], [java-http-client], [dotnet-httpclient] or [angular-httpclient]

Content-Length header already present

I am using the Apache HttpClient (4.1) included in Android to execute a HttpPut. I have verified that I only have 1 …

java android httpclient
C# Add Accept header to HttpClient

What is the difference between these two calls? My end goal is to have Accept: application/json sent over the …

c# httpclient dotnet-httpclient .net-core-2.0 http-accept-header
Can't set Content-Type header

I'm having trouble setting the Content-Type on HttpClient. I followed along this question: How do you set the Content-Type header …

c# windows-phone-8.1 httpclient flurl
How to add json to the body of an http post in java

I'm trying to post some JSON data in java for an Android app I'm working on. Is the below valid …

java android json httpclient http-post
java: apache HttpClient > how to disable retry

I'm using Apache Httpclient for Ajax-calls on a website. In some cases requests to external webservice fail, often with: I/…

java httpclient
Angular4: Http -> HttpClient - requestOptions

So, I am trying to migrate from 'old' http to the new httpClient with the http client I am using …

angular httpclient
How to use restsharp to download file

I have a URL (URL for the live feed from client) which when I hit in browser returns the xml …

c# asp.net xml httpclient restsharp
What's the difference between CloseableHttpResponse.close() and httpPost.releaseConnection()?

CloseableHttpResponse response = null; try { // do some thing .... HttpPost request = new HttpPost("some url"); response = getHttpClient().execute(request); // do some other …

java httpclient
How to send DELETE with JSON to the REST API using HttpClient

I have to send a delete command to a REST API service with JSON content using the HttpClient class and …

c# httpclient portable-class-library
HttpClient & SOAP (C#)

I'm trying to use the HttpClient class to send a SOAP message: Doing so with REST seems easy (code from …

c# soap httpclient