Re: HttpClient SSL Connection Issue

2016-02-22 Thread Tim Jacomb [DATACOM]
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

Re: unable to log using log4j for httpclient4.1.3 in JBoss EAP6.0

2015-09-09 Thread Tim Jacomb [DATACOM]
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

RE: How to use HttpPatch

2015-01-07 Thread Tim Jacomb [DATACOM]
+, 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

How to use HttpPatch

2015-01-06 Thread Tim Jacomb [DATACOM]
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