Re: apache httpclient

2019-09-12 Thread Bernd Eckenfels
-- > https://Bernd.eckenfels.net > > > Von: Somshekar C Kadam > Gesendet: Freitag, September 6, 2019 1:29 PM > An: HttpClient User Discussion > Betreff: Re: apache httpclient > > Hi Bernd and Yossi, > > I am not sure what else I nee

Re: apache httpclient

2019-09-12 Thread Somshekar C Kadam
-- > https://Bernd.eckenfels.net > > > Von: Somshekar C Kadam > Gesendet: Freitag, September 6, 2019 1:29 PM > An: HttpClient User Discussion > Betreff: Re: apache httpclient > > Hi Bernd and Yossi, > > I am not sure what else I need to do on th

Re: apache httpclient

2019-09-06 Thread Bernd Eckenfels
You need to specify the classpath and the full class name (including package). -- https://Bernd.eckenfels.net Von: Somshekar C Kadam Gesendet: Freitag, September 6, 2019 1:29 PM An: HttpClient User Discussion Betreff: Re: apache httpclient Hi Bernd and Yossi

Re: apache httpclient

2019-09-06 Thread Somshekar C Kadam
t;> -- >> http://bernd.eckenfels.net >> >> ________ >> Von: Somshekar C Kadam >> Gesendet: Freitag, September 6, 2019 10:21 AM >> An: HttpClient User Discussion >> Betreff: Re: apache httpclient >> >> Hi Yossi and

Re: apache httpclient

2019-09-06 Thread Somshekar C Kadam
__ > Von: Somshekar C Kadam > Gesendet: Freitag, September 6, 2019 10:21 AM > An: HttpClient User Discussion > Betreff: Re: apache httpclient > > Hi Yossi and Bernd, > > Seems other issue path are all proper > > somshekar@celsys041:~$ java > org.a

Re: apache httpclient

2019-09-06 Thread Bernd Eckenfels
You are not specifying a classpath? TrustStrategy is part of httpcomponents-core. -- http://bernd.eckenfels.net Von: Somshekar C Kadam Gesendet: Freitag, September 6, 2019 10:21 AM An: HttpClient User Discussion Betreff: Re: apache httpclient Hi Yossi and

Re: apache httpclient

2019-09-06 Thread Somshekar C Kadam
Java stuff, unrelated to HC. Maybe you should do some Java >> tutorial first, or if possible start using an IDE, which simplifies a lot >> of these issues.) >> >> -Original Message- >> From: Somshekar C Kadam >> Sent: Thursday, 5 September 2019 16:51 >>

Re: apache httpclient

2019-09-05 Thread Somshekar C Kadam
elated to HC. Maybe you should do some Java > tutorial first, or if possible start using an IDE, which simplifies a lot > of these issues.) > > -Original Message- > From: Somshekar C Kadam > Sent: Thursday, 5 September 2019 16:51 > To: HttpClient User Discussion >

RE: apache httpclient

2019-09-05 Thread yossi
al Message- From: Somshekar C Kadam Sent: Thursday, 5 September 2019 16:51 To: HttpClient User Discussion Subject: Re: apache httpclient Hi Yossi, tried the same somshekar@celsys041:~$ java -classpath /home/somshekar/akshay/java-jvms/httpcomponents-client-4.5.9/lib/httpclient-4.5.9.jar:/home/somshe

Re: apache httpclient

2019-09-05 Thread Somshekar C Kadam
Original Message- > From: Somshekar C Kadam > Sent: Thursday, 5 September 2019 16:14 > To: HttpClient User Discussion > Subject: Re: apache httpclient > > Hi Yossi, > Thanks you are right, I did put all jar files and compiled it, now it > compiles successfully able to cr

RE: apache httpclient

2019-09-05 Thread yossi
You need to specify the full package name of the main class (in your case org.apache.http.examples.client.ClientCustomSSL). -Original Message- From: Somshekar C Kadam Sent: Thursday, 5 September 2019 16:14 To: HttpClient User Discussion Subject: Re: apache httpclient Hi Yossi, Thanks

Re: apache httpclient

2019-09-05 Thread Somshekar C Kadam
uite time-consuming. You can definitely do it for this test, but I > recommend learning how to use Maven. > > -Original Message- > From: Somshekar C Kadam > Sent: Thursday, 5 September 2019 15:40 > To: HttpClient User Discussion > Subject: Re: apache httpclient >

RE: apache httpclient

2019-09-05 Thread yossi
: Thursday, 5 September 2019 15:40 To: HttpClient User Discussion Subject: Re: apache httpclient Hi Yossi, Thanks for correcting me, I used example from 4.5.9, let me know if I am setting proper jar file or need to give any other or missing any step. source code = package

Re: apache httpclient

2019-09-05 Thread Somshekar C Kadam
it with JARs for HC 4.5.x. The hint is in the package name > (client5). > I suggest you look for examples for the current version (4.5.x). > > > -Original Message- > From: Somshekar C Kadam > Sent: Thursday, 5 September 2019 14:28 > To: HttpClient User Discussion >

RE: apache httpclient

2019-09-05 Thread yossi
September 2019 14:28 To: HttpClient User Discussion Subject: Re: apache httpclient Hi Bernd, I am using java 1.8, Ubuntu 16.04, code is given below which I am trying to compile which uses apache httpclient. httpclient jar fies downloaded somshekar@celsys041:~$ ls /home/somshekar/akshay/java-jvms

Re: apache httpclient

2019-09-05 Thread Somshekar C Kadam
s/net/proxies.html. >> >> Yossi. >> >> -Original Message- >> From: Somshekar C Kadam >> Sent: Thursday, 5 September 2019 12:45 >> To: HttpClient User Discussion >> Subject: Re: apache httpclient >> >> Hi Brenda, >> >> Fi

Re: apache httpclient

2019-09-05 Thread Somshekar C Kadam
; From: Somshekar C Kadam > Sent: Thursday, 5 September 2019 12:45 > To: HttpClient User Discussion > Subject: Re: apache httpclient > > Hi Brenda, > > First of all thanks for your time and advice. > I am not asking for Arm, I was telling for Intel Ubuntu Linux machine, &g

RE: apache httpclient

2019-09-05 Thread yossi
the documentation: https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html. Yossi. -Original Message- From: Somshekar C Kadam Sent: Thursday, 5 September 2019 12:45 To: HttpClient User Discussion Subject: Re: apache httpclient Hi Brenda, First of all thanks for your

Re: apache httpclient

2019-09-05 Thread Somshekar C Kadam
don’t think there are specific compile instructions available for arm. > > Gruss > Bernd > > > -- > http://bernd.eckenfels.net > > > Von: Somshekar C Kadam > Gesendet: Donnerstag, September 5, 2019 11:15 AM > An: HttpClient User Disc

Re: apache httpclient

2019-09-05 Thread Bernd Eckenfels
compile instructions available for arm. Gruss Bernd -- http://bernd.eckenfels.net Von: Somshekar C Kadam Gesendet: Donnerstag, September 5, 2019 11:15 AM An: HttpClient User Discussion Betreff: Re: apache httpclient Hi Bernd, Missed the sample program used

Re: apache httpclient

2019-09-05 Thread Somshekar C Kadam
t tell you much). Do you count startup Time? How did you Test Java if it >> does not compile? >> >> Is the only reason you look into HTTPClient the delay you see with >> URLConnection? Do you have a sample program for that which shows the >> slowness? >> Gruss >> Bernd

Re: apache httpclient

2019-09-05 Thread Somshekar C Kadam
or that which shows the > slowness? > Gruss > Bernd > > > -- > http://bernd.eckenfels.net > > > Von: Somshekar C Kadam > Gesendet: Donnerstag, September 5, 2019 10:53 AM > An: HttpClient User Discussion; Somshekar kadam > Betreff: Re:

Re: apache httpclient

2019-09-05 Thread Bernd Eckenfels
URLConnection? Do you have a sample program for that which shows the slowness? Gruss Bernd -- http://bernd.eckenfels.net Von: Somshekar C Kadam Gesendet: Donnerstag, September 5, 2019 10:53 AM An: HttpClient User Discussion; Somshekar kadam Betreff: Re: apache

Re: apache httpclient

2019-09-05 Thread Somshekar C Kadam
Hi Bernd, Thanks for the quick reply. Excuse me on the replyall part, my bad. when I use curl same https connection quickly returns within 2 seconds, ofcourse different cipher is used. Also I am not able to get sample apache httpclient compiled on Ubuntu Linux machine, any link or steps which I ca

Re: apache httpclient

2019-09-05 Thread Bernd Eckenfels
Hello, Certainly you can use the Apache HTTPClient to replace URLConnection, you don’t need to do anything special on ARM other than having Java Runtime installed. If you have a slow http download changes are high this is caused by slow CPU, missing random numbers, slow network or server. All t

Re: Apache HttpClient include boundary in multipart/form-data

2018-02-26 Thread Bindul Bhowmik
On Mon, Feb 26, 2018 at 5:27 PM, Arya F wrote: > I made a post about this on Stackoverflow and never received an answer. > Here is the link to the post > https://stackoverflow.com/questions/48994951/apache-httpclient-include-boundary-in-multipart-form-data > > Here is what I am stuck on > > I have

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

2016-05-19 Thread Baratali Izmailov
gt; > -Original Message- > From: Baratali Izmailov > To: HttpClient User Discussion > Sent: Mi., 18 Mai 2016 12:37 > Subject: Re: Apache HttpClient TCP Keep-Alive (socket keep-alive) > > Thank you. I updated Apache HttpClient version as you described. However, > it didn

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

2016-05-18 Thread ecki
help to keep a connection open if an intermediate wants to be an annoyance. Greetings Bernd -- http://bernd.eckenfels.net -Original Message- From: Baratali Izmailov To: HttpClient User Discussion Sent: Mi., 18 Mai 2016 12:37 Subject: Re: Apache HttpClient TCP Keep-Alive (socket keep

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

2016-05-18 Thread Baratali Izmailov
Thank you. I updated Apache HttpClient version as you described. However, it didn't help, TCP KeepAlive packets were not sent between client and server. If correctly understand, the problem is that I cannot edit TCP KeepAlive timouts in HttpClient or even in Apache httpd server. It works only if I

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

2016-05-12 Thread Oleg Kalnichevski
On Thu, 2016-05-12 at 13:46 +0100, Baratali Izmailov wrote: > > Please consider upgrading. I am not entirely sure if HC 4.2 supports TCP > > keepalive > setting. > > Unfortunately, to upgrade HC we need to upgrade Spring to the latest > version which requires Java 8. But, we cannot force our clie

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

2016-05-12 Thread Baratali Izmailov
> Please consider upgrading. I am not entirely sure if HC 4.2 supports TCP > keepalive setting. Unfortunately, to upgrade HC we need to upgrade Spring to the latest version which requires Java 8. But, we cannot force our clients to use Java 8 yet. However, I don't see SO_KEEPALIVE parameter in th

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

2016-05-12 Thread Oleg Kalnichevski
On Thu, 2016-05-12 at 09:23 +0100, Baratali Izmailov wrote: > Hello. Thanks for the quick response. > > > Is there any way you can turn this into 2 requests? > For now we cannot split this into 2 HTTP requests, because we have to > change client-server protocol communication and re-implement some

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

2016-05-12 Thread Baratali Izmailov
Hello. Thanks for the quick response. > Is there any way you can turn this into 2 requests? For now we cannot split this into 2 HTTP requests, because we have to change client-server protocol communication and re-implement some parts of our application, which will take much time. I understand that

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

2016-05-11 Thread ecki
-idle. An alternative would be to send 0-byte HTTP (content transfer) chunks from the server. Gruss Bernd -- http://bernd.eckenfels.net -Original Message- From: Oleg Kalnichevski To: HttpClient User Discussion Sent: Mi., 11 Mai 2016 18:46 Subject: Re: Apache HttpClient TCP Keep-Alive

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

2016-05-11 Thread Oleg Kalnichevski
On Wed, 2016-05-11 at 15:52 +0100, Baratali Izmailov wrote: > Hello, > > I have http request that takes too much time to be processed by the server > (about 5 minutes). Because connection becomes idle for 5 minutes, proxy > server shutdowns the connection. I'm trying to use TCP Keep-Alive in Apach

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: Apache httpclient read timeout

2010-02-17 Thread Ken Krugler
FWIW, you could take a look at the SimpleHttpFetcher class in the Bixo project. This supports a "minimum response rate" config setting, which will abort a request if the average response rate drops below a threshold. -- Ken On Feb 3, 2010, at 2:40pm, Learn Learn wrote: Oleg, That's rig

Re: Apache httpclient read timeout

2010-02-03 Thread Oleg Kalnichevski
Learn Learn wrote: Oleg, That's right, but is there a way I can do a "request" timeout? Any option in HTTPCLient that would abort a request after a time interval elapses? (time interval defined by the timeout) No, there is no such option. Oleg

Re: Apache httpclient read timeout

2010-02-03 Thread Learn Learn
Oleg, That's right, but is there a way I can do a "request" timeout? Any option in HTTPCLient that would abort a request after a time interval elapses? (time interval defined by the timeout) -- View this message in context: http://old.nabble.com/Apache-httpclient-read-timeout-tp27414268p2744478

Re: Apache httpclient read timeout

2010-02-03 Thread Oleg Kalnichevski
On Mon, 2010-02-01 at 17:23 -0800, Learn Learn wrote: > Hi, > > We have an application on Servicemix that uses ApacheHTTPCLient within it to > handle http based communication. In our flows, we have defined http > endpoints with a socket timeout of 30 seconds and this usually works except > for the

Re: Apache HttpClient - Using custom socket factory for failover support

2008-03-25 Thread Oleg Kalnichevski
On Tue, 2008-03-25 at 14:44 -0700, Ankur Shah wrote: > Thanks oleg, > > Do you see any issues in the approach that i was thinking about (and have > implemented already) other than the fact that its not very clean? Ankur, The problem is the connection manager can only catch connect timeout excep

Re: Apache HttpClient - Using custom socket factory for failover support

2008-03-25 Thread Ankur Shah
Thanks oleg, Do you see any issues in the approach that i was thinking about (and have implemented already) other than the fact that its not very clean? Could you elaborate a bit more on what you mean by creating service on top of httpclient, (i understand what it'll do but just didn't know what/h

Re: Apache HttpClient - Using custom socket factory for failover support

2008-03-25 Thread Oleg Kalnichevski
On Mon, 2008-03-24 at 15:46 -0700, Ankur Shah wrote: > Hi Oleg, > > Thanks for the response. The server that i am running (acting as a client in > this particular case) is working with multiple servers (hosting different > webservices) with each having a primary and a failover pair. From this > p

Re: Apache HttpClient - Using custom socket factory for failover support

2008-03-24 Thread Ankur Shah
Hi Oleg, Thanks for the response. The server that i am running (acting as a client in this particular case) is working with multiple servers (hosting different webservices) with each having a primary and a failover pair. From this perspective the thought was that rather than having different class

Re: Apache HttpClient - Using custom socket factory for failover support

2008-03-24 Thread Oleg Kalnichevski
On Thu, 2008-03-20 at 22:05 -0700, Ankur Shah wrote: > I am using httpclient to connect to a remote server. Now for each primary > server there's also a backup failover server that i must talk to if > connection attempts with the primary server fails. To achieve > this what i'd ideally like to do