Re: HttpClient 4.0

2009-09-28 Thread Joan Balagueró Valls
--Mensaje original-- De: visualize Para:httpclient-users@hc.apache.org Responder a:HttpClient User Discussion Asunto: Re: HttpClient 4.0 Enviado: 28 Sep, 2009 11:06 olegk wrote: > > visualize wrote: >> Hello, >> >> I'm trying to port my application to use HttpClient 4.0 instead of >>

RE: RV: NO_HTTP_RESPONSE_EXCEPTION

2009-07-22 Thread Joan Balagueró Valls
Hello Oleg, Ok, then, in your opinion, it seems that some connections were closed on the server side, but for H4 they are OK, and when H4 tries to use them, then a NoHttpResponseException is thrown. In fact, I've implemented an IdleConnectionsHandler that closes expired connections and idle conne

RE: RV: NO_HTTP_RESPONSE_EXCEPTION

2009-07-22 Thread Joan Balagueró Valls
Hello Oleg, I attach the http log. I've been taking a look to this trace, and I've observed the following. I don't know if it's important or not. In line 53315, we have a request that is correctly processed. When HttpClient tries to get a connection from pool, the information is: Total connectio

RV: NO_HTTP_RESPONSE_EXCEPTION

2009-07-22 Thread Joan Balagueró Valls
Hello Oleg, Five months ago, I sent you the emails below because I was experiencing a lot of NoHttpResponseException errors when sending requests to a couple of servers. Yesterday night, I installed my app with H4 in one of my clients. This morning I've had to move back to H3 because of these err

EXPECT-CONTINUE HANDSHAKE

2009-07-09 Thread Joan Balagueró Valls
Hello Oleg, Can I set the expect-continue handshake at httpclient level? HttpParams objHttpParams = new BasicHttpParams(); HttpProtocolParams.setVersion(objHttpParams, HttpVersion.HTTP_1_1); ClientConnectionManager cm = new ThreadSafeClientConnManager(this.objHttpParams, HttpUtils.createDef

RE: Http trace for cookies

2009-07-09 Thread Joan Balagueró Valls
ute(ClientCookie.MAX_AGE_ATTR, "60"); bcc.setAttribute(ClientCookie.EXPIRES_ATTR, DateUtils.formatDate(expires)); -Mensaje original- De: Oleg Kalnichevski [mailto:ol...@apache.org] Enviado el: miércoles, 08 de julio de 2009 23:54 Para: HttpClient User Discussion Asunto: Re: Http trace for

Http trace for cookies

2009-07-08 Thread Joan Balagueró Valls
Hello Oleg, I’m trying to send you the trace, but your mail server does not accept it. I paste here a couple of lines of this trace: This is the interesting part of the trace. The expiry date is correct in the line 7 (60 seconds from now). But it seems this expiry date does not appear i

TRYING AGAIN THE ATTACH FOR COOKIES QUESTION

2009-07-08 Thread Joan Balagueró Valls
Hello, Here the attach (I hope) Joan. - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org

QUESTION ABOUT COOKIES

2009-07-08 Thread Joan Balagueró Valls
Again the attach zipped. Joan. - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org

RE: QUESTION ABOUT COOKIES

2009-07-07 Thread Joan Balagueró Valls
Hello, Here the attach with the trace. It's a post request from my local app to my servlet. In all tests I've always used: bcc.setVersion(1); bcc.setAttribute(ClientCookie.VERSION_ATTR, "1"); Thanks, Joan. -Mensaje original- De: Oleg Kalnichevski [mailto:ol...@apache.org] Enviado el:

RE: QUESTION ABOUT COOKIES

2009-07-07 Thread Joan Balagueró Valls
Hello Oleg, Thanks, after some tests this is exactly what it happens. When I send this cookie to my servlet, I receive all its data correctly except the "max-age" attribute, which is always -1. I'm trying to set MAX_AGE with your API, and I'm getting crazy... I've tried "stdCookie.setExpiryDate

QUESTION ABOUT COOKIES

2009-07-06 Thread Joan Balagueró Valls
Hello Oleg, I’m trying to send cookies to a servlet with a simple app. Following the tutorial: HttpContext localContext = new BasicHttpContext(); CookieStore cookieStore = new BasicCookieStore(); BasicClientCookie stdCookie = new BasicClientCookie("name", "value"); stdCookie.setVersion

TUTORIAL AND ABORT METHOD

2009-06-05 Thread Joan Balagueró Valls
Hello Oleg, I’ve read the tutorial, and it’s OK for me. Just one question (important, I think) about connection release. I’ve compared what your tutorial says about this, and the web. In H4 website, one can see the following: // In case of an IOException the connection will be released

H4 - B3

2009-06-03 Thread Joan Balagueró Valls
Hello Oleg, Do you know any idea about when you plan to release H4-beta3? Many thanks, Joan.