Changing the order of HTTP Headers

2021-09-03 Thread Murat Balkan
Hi all, Is it possible to change the order of the HTTP headers sent by the HttpGet request? (HttpClient 4.5) I am specifically looking for sending the Host header first. Although I can influence the order with setHeader and addHeader methods for headers like HttpHeaders.USER_AGENT, Accept and

Re: DNS Round Robin

2016-12-04 Thread Murat Balkan
Thank you Oleg Murat Balkan On Dec 4, 2016 9:06 AM, "Oleg Kalnichevski" <ol...@apache.org> wrote: > On Fri, 2016-12-02 at 12:55 -0500, Murat Balkan wrote: > > Hi all, > > > > When I do httpclient.execute to the url ( > > https://mc.yandex.ru/metrik

DNS Round Robin

2016-12-02 Thread Murat Balkan
Hi all, When I do httpclient.execute to the url ( https://mc.yandex.ru/metrika/watch.js) the the execute call hangs more than the timeout parameters. I have socket timeout set to 15 seconds and connect timeout set to 15 seconds. That site has a DNS round robin and it seems that Httpclient

HttpContext To Url

2016-11-29 Thread Murat Balkan
Hi, Whats the best way to reach the request target Url from the HttpContext object? Thank you, Murat

Re: RetryHandler Per GetMethod

2016-11-10 Thread Murat Balkan
ds > > Gruss > Bernd > -- > http://bernd.eckenfels.net > > > > > On Thu, Nov 10, 2016 at 11:15 AM +0100, "Oleg Kalnichevski" < > ol...@apache.org> wrote: > > > > > > > > > > > On Wed, 2016-11-09 at 09:05 -0500, Murat Bal

RetryHandler Per GetMethod

2016-11-09 Thread Murat Balkan
Hello, Is it possible to set a retry handler per HttpGet? The following code taken from the documentation only applies to 3x and seems to be deprecated. httpget.getParams(). setParameter(HttpMethodParams.RETRY_HANDLER, myretryhandler); What I want to achieve is to set

Re: NoHttpResponseException Timer?

2016-11-08 Thread Murat Balkan
ver parameter) My question is, shouldn't socket timeout timer kick in as soon as the socket is open? Does it need at least 1 packet to arrive at the client? Thanks On 8 November 2016 at 07:35, Oleg Kalnichevski <ol...@apache.org> wrote: > On November 7, 2016 9:16:19 PM GMT+01:00, Murat B

NoHttpResponseException Timer?

2016-11-07 Thread Murat Balkan
Hi, Which timer does the NoHttpResponseException use? My socket timeout is set around 30 and connection timeout is set to 20. However, I see that in some cases, this exception is thrown after more than 50 seconds. Is there a timeout for org.apache.http.NoHttpResponseException? Thanks Murat

Calculating the Response Duration when Retry is activated

2016-10-31 Thread Murat Balkan
Hi, I am measuring the response duration by getting the system time before the get call and after the get call and take the difference between them. However, when the retry is enabled, (my retryhandler returns true) this part gives me the total time. Is it possible to get the last duration oob?

Re: Disabling pooling of PoolingConnectionManager

2016-10-29 Thread Murat Balkan
connection reset by peer, client connection reset )) Shouldn't NoConnectionReuse strategy cancel this re-use behavior? Can my setConnectionManager(cm) call overriding HttpClientBuilder parameters? Thank you, Murat On Tue, Oct 18, 2016 at 8:43 PM, Murat Balkan <mrbal...@gmail.com> wrote

Reading the TCP Connect Duration

2016-10-21 Thread Murat Balkan
Hi, I wonder if I can get HTTP connection setup duration from HttpClient. I have visibility to the DNS resolve time via the custom resolvers but not the connect duration. If the total page download duration is too much, I want to break down this total duration into TCP connection duration and

Re: Disabling pooling of PoolingConnectionManager

2016-10-18 Thread Murat Balkan
r implementations respect the > Connection: close header > > 2016-10-18 16:35 GMT+02:00 Murat Balkan <mrbal...@gmail.com>: > > > I checked with the RFC and it seems if provided, "connection: close" > header > > is a MUST rather than SHOULD. So, it should not up to server

Re: Disabling pooling of PoolingConnectionManager

2016-10-18 Thread Murat Balkan
fan Magnus Landrø < stefan.lan...@gmail.com> wrote: > Why would you think so? > > 2016-10-18 16:10 GMT+02:00 Murat Balkan <mrbal...@gmail.com>: > > > Thanks Oleg, > > One question. I think it would be up to server implementation whether to > > take these p

Re: Disabling pooling of PoolingConnectionManager

2016-10-18 Thread Murat Balkan
> > Murat, > > > > On Mon, Oct 17, 2016 at 8:11 PM, Murat Balkan <mrbal...@gmail.com> > wrote: > > > I see. I think that also means that I cannot share the > ClosableHttpClient > > > instance among multiple threads as each client can refer to

Re: Disabling pooling of PoolingConnectionManager

2016-10-17 Thread Murat Balkan
of the route provided? Regards. Murat On Mon, Oct 17, 2016 at 5:05 PM, Bhowmik, Bindul <bindulbhow...@gmail.com> wrote: > Murat, > > On Mon, Oct 17, 2016 at 12:58 PM, Murat Balkan <mrbal...@gmail.com> wrote: > > Hi Bindul, > > Thanks for the answer. > > I was

Re: Disabling pooling of PoolingConnectionManager

2016-10-17 Thread Murat Balkan
how...@gmail.com> wrote: > Murat, > > On Mon, Oct 17, 2016 at 11:12 AM, Murat Balkan <mrbal...@gmail.com> wrote: > > Hi, > > > > We are using PoolingHttpClientConnectionManager to open up connections > to > > multiple URL's in different threads (via differ

Disabling pooling of PoolingConnectionManager

2016-10-17 Thread Murat Balkan
Hi, We are using PoolingHttpClientConnectionManager to open up connections to multiple URL's in different threads (via different HttpGet objects). The only reason we are using the PoolingHttpClientConnectionManager is its' performance in multi-thread environments (as suggested by the

Multiple DNS Server Settings

2016-08-11 Thread Murat Balkan
Hi, I will send out more than 100 get requests to several sites. However, I'd like to use different DNS Server settings for each of them. What is the most efficient way of doing this? As long as I know the setDns function is only applicable to PoolingHttpClientConnectionManager so do I need to

Re: HttpClient SSL Connection Issue

2016-02-22 Thread Murat Balkan
ry 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 > _

Re: HttpClient SSL Connection Issue

2016-02-22 Thread Murat Balkan
e Mouawad < philippe.moua...@gmail.com> wrote: > hi, > Can you show your httpclient code and mention which versions you used for > httpcore and httpclient and java exact version > > thx > > On Monday, February 22, 2016, Murat Balkan <mrbal...@gmail.com> wrote: >

Re: HttpClient SSL Connection Issue

2016-02-22 Thread Murat Balkan
Mon, 2016-02-22 at 11:27 -0500, Murat Balkan wrote: > > Can you please suggest me how HttpClient can get the page like > > HttpUrlConnection? or Google Chrome? > > Capture a session between a browser or HttpUrlConnection using Wireshark > or browser plugin of your choosing.

Re: HttpClient SSL Connection Issue

2016-02-22 Thread Murat Balkan
he Client. > > Thnaks > > Murat > > You are very welcome to disagree. > > Your own log clearly show that the problem has nothing to do with SSL > and is caused by peer connection reset. > > Oleg > > > > > > On Mon, Feb 22, 2016 at 11:14 AM, Oleg Kalnichevs

Re: HttpClient SSL Connection Issue

2016-02-22 Thread Murat Balkan
<ol...@apache.org> wrote: > On Mon, 2016-02-22 at 10:57 -0500, Murat Balkan wrote: > > I enabled the debug log and it seems the connection is established . Any > > ideas? Attaching below: > > > > 2016/02/22 10:49:45:146 EST [DEBUG] DefaultHttpClientConnectionOper

Re: HttpClient SSL Connection Issue

2016-02-22 Thread Murat Balkan
nnection 2016/02/22 10:49:45:419 EST [DEBUG] MainClientExec - Connection discarded On Sat, Feb 20, 2016 at 10:51 PM, Murat Balkan <mrbal...@gmail.com> wrote: > Hi, > > I have a problem with HttpClient. (All versions, seems to have the same) > > When I try to connect an Https s

HttpClient SSL Connection Issue

2016-02-20 Thread Murat Balkan
Hi, I have a problem with HttpClient. (All versions, seems to have the same) When I try to connect an Https site (specifically so.n11.com) I got a connection reset error after the handshake is finalized. If I try to call the same URL with HttpUrlConnection, I dont get any errors. The browsers