Re: HttpClient bounded download size

2016-12-12 Thread Dan Quaroni
This code is part of a class I made to do this (In this case I needed to grab the first 128 or so bytes of SWF files so I could parse the display dimensions): HttpGet get = new HttpGet(buildUrl(url)); try (CloseableHttpResponse response = client.execute(get)) { SwfInfo

Reading only the first X bytes of the response stream

2016-09-01 Thread Dan Quaroni
I'm writing a utility that will retrieve some metadata about swf (flash) files and I'd like to use httpclient to read the data but I want clarity on the necessity to read the entire stream. The information I need is all in the first few bytes of the file, and the files could potentially be quite l

Re: Apache HttpClient TCP Keep-Alive (socket keep-alive)

2016-05-11 Thread Dan Quaroni
Is there any way you can turn this into 2 requests? 1 to kick off the long process which stores the results somewhere, and 1 to poll for the results to get them when they're available? On Wed, May 11, 2016 at 10:52 AM, Baratali Izmailov wrote: > Hello, > > I have http request that takes too muc

Re: HttpClientBuilder Memory Leak

2016-02-03 Thread Dan Quaroni
Gary > > > > On Tue, Feb 2, 2016 at 1:39 PM, David Skalka > > wrote: > > > > > I updated httpclient to 4.5.1 and after 30minutes I see same result. > > > memory is growing up > > > > > > 2016-02-02 21:51 GMT+01:00 Dan Quaroni : > > > &g

Re: HttpClientBuilder Memory Leak

2016-02-02 Thread Dan Quaroni
ue, Feb 2, 2016 at 3:36 PM, Oleg Kalnichevski wrote: > On Tue, 2016-02-02 at 15:29 -0500, Dan Quaroni wrote: > > What version of HttpClient are you using? I cut the sleep down to 1ms > and > > have had it running for 25 minutes and am not observing any such memory > > le

Re: HttpClientBuilder Memory Leak

2016-02-02 Thread Dan Quaroni
Ah. I'm using 4.5. Perhaps it's no longer an issue. On Tue, Feb 2, 2016 at 3:34 PM, David Skalka wrote: > 4.4.1 > > 2016-02-02 21:29 GMT+01:00 Dan Quaroni : > > > What version of HttpClient are you using? I cut the sleep down to 1ms > and > > have had

Re: HttpClientBuilder Memory Leak

2016-02-02 Thread Dan Quaroni
What version of HttpClient are you using? I cut the sleep down to 1ms and have had it running for 25 minutes and am not observing any such memory leak. On Tue, Feb 2, 2016 at 3:21 PM, Oleg Kalnichevski wrote: > On Tue, 2016-02-02 at 21:16 +0100, David Skalka wrote: > > what is it "own data" ? >

Re: PoolingHttpClientConnectionManager SSL Handshake exception

2015-09-08 Thread Dan Quaroni
HttpClient did get more picky about certs. On Tue, Sep 8, 2015 at 4:31 AM, Bhuvaneswari Anandhan < bhuvaneswari.anand...@oracle.com> wrote: > Hi , > > > > Recently we have done a Apache http component migration from 3.1 to 4.4.1. > > > > We have changed the connection manager implementation from

Re: HTTP Error 400. The request hostname is invalid.

2015-03-22 Thread Dan Quaroni
A 400 with that error message is just bizarre. But to cover all your bases, have you tried pinging (or telnetting to port 80) the server from the iSeries machine? Over the years I've tried IBM's JDK and have always found that it fails to function properly in this edge case or that, but these type

Re: How to handle session using Httpclient or FirefoxDriver using Java

2015-03-10 Thread Dan Quaroni
I haven't tried the link you supplied, but I'm guessing that us.vwr.com requires a session to be in place before it allows a search to be executed. You should first make a request to their home page or store page or wherever the session gets initiated and put the session cookie on the request to t

Re: SSL trouble with wildcards and certs in 4.4 beta1

2015-01-08 Thread Dan Quaroni
The problem doesn't reproduce with the trunk, so I suppose from my perspective that's mission accomplished. Thanks. On Wed, Jan 7, 2015 at 4:33 AM, Oleg Kalnichevski wrote: > On Tue, 2015-01-06 at 17:08 -0500, Dan Quaroni wrote: > > This used to work in 4.3... I

SSL trouble with wildcards and certs in 4.4 beta1

2015-01-06 Thread Dan Quaroni
This used to work in 4.3... I've tried setting other HostNameVerifiers (which seem to be all deprecated now in 4.4) but that also hasn't helped. The Default verifier is rejecting a cert with a wilcard in it: javax.net.ssl.SSLPeerUnverifiedException: Host name 'us8.api.mailchimp.com' does not matc