version: 4.4.1
App Server: TomEE7
We use PoolingHttpClientConnectionManager with the following defaults:
* max total connections: 100,000
* default max per route: 50
we create the HttpClient and PoolingHttpClientConnectionManager as static
singletons at container startup.
private
On Mon, 2016-02-22 at 15:08 -0500, Murat Balkan wrote:
> Tom,
> It worked like a charm! Thank you very much! It seems HTTPURLConnection
> and URL classes add a default "accept" header which is not implemented by
> Apache HttpClient.
'Accept' header as well as other content negotiation headers
Hi Oleg,
I was wrong as per my N-1 mail .
On Mon, Feb 22, 2016 at 9:13 PM, Oleg Kalnichevski wrote:
> On Mon, 2016-02-22 at 21:08 +0100, Philippe Mouawad wrote:
> > Hi Oleg,
> > I tried the URL using JMeter and HttpClient 4.5.2 it fails.
> >
> > I don't see big differences
On Mon, 2016-02-22 at 21:08 +0100, Philippe Mouawad wrote:
> Hi Oleg,
> I tried the URL using JMeter and HttpClient 4.5.2 it fails.
>
> I don't see big differences when comparing ssl logs:
> Thread Group 1-1, handling exception: java.net.SocketException: Connection
> reset
> %% Invalidated:
Good catch @Tim !
Indeed Java:
Padded plaintext before ENCRYPTION: len = 176
: 47 45 54 20 2F 20 48 54 54 50 2F 31 2E 31 0D 0A GET / HTTP/1.1..
0010: 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 6B 65 65 70 Connection: keep
0020: 2D 61 6C 69 76 65 0D 0A 55 73 65 72 2D 41 67 65
Hi Oleg,
I tried the URL using JMeter and HttpClient 4.5.2 it fails.
I don't see big differences when comparing ssl logs:
Thread Group 1-1, handling exception: java.net.SocketException: Connection
reset
%% Invalidated: [Session-4, TLS_RSA_WITH_AES_128_CBC_SHA]
Thread Group 1-1, SEND TLSv1 ALERT:
Tom,
It worked like a charm! Thank you very much! It seems HTTPURLConnection
and URL classes add a default "accept" header which is not implemented by
Apache HttpClient.
Thanks again,
Murat
On Mon, Feb 22, 2016 at 3:03 PM, Tim Jacomb [DATACOM]
wrote:
> Try adding an Accept
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
Hi, Please find it below: The version does not matter. Whatever version I
tried failed. I even installed Java 8 to test. My current versions in the
built path are: httpclient4.5.1,httpcore4.4.3,httpmime 4.5.1, jna 4.1.0,
jna-platform4.1.0,httpclient-cache4.5.1
SSLContext sslContext =
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 wrote:
> I tried the following with URL class this time:
>
> URL my_url = new
I tried the following with URL class this time:
URL my_url = new URL("https://so.n11.com;);
BufferedReader br = new BufferedReader(new
InputStreamReader(my_url.openStream()));
String strTemp = "";
while(null != (strTemp = br.readLine())){
On 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. Configure HttpClient to
Can you please suggest me how HttpClient can get the page like
HttpUrlConnection? or Google Chrome?
If I go to the site admin, wouldnt he say the site is totally reachable?
On Mon, Feb 22, 2016 at 11:22 AM, Oleg Kalnichevski
wrote:
> On Mon, 2016-02-22 at 11:18 -0500, Murat
On Mon, 2016-02-22 at 08:23 -0700, pavel wrote:
> Hi, Oleg.
>
> I find can upload data if return from:
> @Override
> public long getContentLength() {
> return -1;
> }
> some data length,
On Mon, 2016-02-22 at 11:18 -0500, Murat Balkan wrote:
> Hi Oleg,
> I do not aggree, other Http libraries does not have this problem. As I said
> HttpUrlConnection gets the page, all types of browsers can get the page. It
> is clear that this is an error that is related with the Apache Client.
>
Hi Oleg,
I do not aggree, other Http libraries does not have this problem. As I said
HttpUrlConnection gets the page, all types of browsers can get the page. It
is clear that this is an error that is related with the Apache Client.
Thnaks
Murat
On Mon, Feb 22, 2016 at 11:14 AM, Oleg Kalnichevski
Hi, Oleg.
I find can upload data if return from:
@Override
public long getContentLength() {
return -1;
}
some data length, instead of -1. Now I find walk around, though I think will
use
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] DefaultHttpClientConnectionOperator -
Connection established 142.133.240.86:34018<->176.41.133.12:443
2016/02/22 10:49:45:146 EST [DEBUG] MainClientExec - Executing
On Sun, 2016-02-21 at 15:41 -0700, pavel wrote:
> Hello
>
> I am new with CloseableHttpClient and HttpPut and want to use them, because
> with java core HttpUrlConnection class I have to fully populate OutputStream
> with data, before it starts transfer to server. While my data to send size
> is
19 matches
Mail list logo