Try adding an Accept Header, the server you are contacting appears to reject
all requests without one
httpGet.addHeader("Accept",
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
Tim
From: Murat Balkan
Have you considered using the jboss cli instead for changing the logging level?
e.g.
jboss-cli.sh -c
'/subsystem=logging/logger=org.apache.http:change-log-level(level=DEBUG)'
This is a runtime change and take effect immediately.
Tim
From: Tony
+, Tim Jacomb [DATACOM] wrote:
Hi
I'm trying to interact with a restful API using httpclient,
I'm using 4.3.6 of httpclient and most of my code looks like:
RequestBuilder.post()
.setUri(endpoint)
.addHeader(HttpHeaders.CONTENT_TYPE, application/json)
.setEntity
Hi
I'm trying to interact with a restful API using httpclient,
I'm using 4.3.6 of httpclient and most of my code looks like:
RequestBuilder.post()
.setUri(endpoint)
.addHeader(HttpHeaders.CONTENT_TYPE, application/json)
.setEntity(httpEntity)
.build();
Or get or put...
I