Using a self-signed CA

2013-02-21 Thread Gordon Ross
what I want. Can someone tell me what I'm doing wrong ? Thanks, GTG -- Gordon Ross - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Spurious blank line being added to headers...

2016-03-19 Thread Gordon Ross
eader to Request: X-CREDENTIALS 2016-03-17 16:59:39,986 [TP-Processor3] TRACE util.BasicHttpClient gr306 - Adding Header to Request: Accept 2016-03-17 16:59:39,986 [TP-Processor3] TRACE util.BasicHttpClient gr306 - Adding Header to Request: Content-Type As I said, when this same library co

Re: Pooling Connection Manager Issue

2016-04-26 Thread Gordon Ross
p.client Would you want any more? GTG -- Gordon Ross, UIS Telecoms Office, University of Cambridge - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Controlling HTTP Basic authentication

2016-12-07 Thread Gordon Ross
. Is there a way to tell HTTP Client to only sent the Authorization header in response to a 401 from the server, instead of with every request? Or do I have to manually add & remove the Authorization header myself? Thanks, GTG -- Gordon

Thread Safety

2021-07-01 Thread Gordon Ross
Are there any docs on thread safety with HTTP Client? Looking at the multithread example at https://github.com/apache/httpcomponents-client/blob/5.1.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientMultiThreadedExecution.java I'm guessing that anything that's a subclass of

Re: Sockets not closing

2022-07-07 Thread Gordon Ross
How do I do that? Gordon. From: Oleg Kalnichevski Date: Thursday, 7 July 2022 at 19:30 To: HttpClient User Discussion Subject: Re: Sockets not closing On Thu, 2022-07-07 at 18:17 +, Gordon Ross wrote: > If I don’t do the getContent() then the socket is closed as soon as I &

Sockets not closing

2022-07-07 Thread Gordon Ross
is = response.getEntity().getContent(); is.close(); response.close(); But even with this, the underlying socket remains open. I’ve tried looking at the samples and I can’t see I’m doing anything different. What am I missing? Gordon Ross (he/him) Collaboration Tools Team University Information Services

Re: Sockets not closing

2022-07-07 Thread Gordon Ross
tity/stream will close > the socket in all cases. > > -ck > I strongly suspect that the connection was simply kept alive and pooled. That can be established by tuning on connection management context logging. Oleg > On Thu, Jul 7, 2022, at 13:58, Gordon Ross wrote: > > I’m u

Clients, Cookies & Requests

2022-07-01 Thread Gordon Ross
eing that requests made with separate SessionContexts are being made with cookies from other calls. Is this expected behaviour? Or have I subtly screwed up somewhere? Thank you, Gordon Ross (he/him) Collaboration Tools Team University Information Services University of Cambridge While it suit

Re: Clients, Cookies & Requests

2022-07-02 Thread Gordon Ross
equests On Fri, 2022-07-01 at 21:29 +0000, Gordon Ross wrote: > I’m trying to clarify how Cookies, Clients & Requests interact. > > I thought that Cookies would only be shared between requests if they > were saved from a previous request/respone and added to the > SessionContext