Unable to parse header: HTTP/1.0 200 OK

2004-08-13 Thread Mathias Cianci
Yes, it's mathias again :o) I get this error message : INFO: Recoverable exception caught when processing request 13 ao¹t 2004 14:25:40 org.apache.commons.httpclient.HttpMethodBase processRequest ATTENTION: Recoverable exception caught but MethodRetryHandler.retryMethod() returned false,

Re: Unable to parse header: HTTP/1.0 200 OK

2004-08-13 Thread Mathias Cianci
Oups, I'm confused. I've just seen that somebody have post a similar message with exactly the same subject ... Mathias Cianci a écrit : Yes, it's mathias again :o) I get this error message : INFO: Recoverable exception caught when processing request 13 ao¹t 2004 14:25:40

timeout while waiting from reponse body ?

2004-08-12 Thread Mathias Cianci
Hello everybody, Sometimes, when this code line is executed : byte[] responseBody = method.getResponseBody(); my thread is blocked because the response is not coming. Is there a way to put something like a timeout in order to stop the thread after 1minute if the response is not coming ? Hope an

Re: timeout while waiting from reponse body ?

2004-08-12 Thread Mathias Cianci
); // 60 sec timeout -Original Message- From: Mathias Cianci [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 2:50 PM To: Commons HttpClient Project Subject: timeout while waiting from reponse body ? Hello everybody, Sometimes, when this code line is executed : byte[] responseBody

Re: timeout while waiting from reponse body ?

2004-08-12 Thread Mathias Cianci
this method who is giving me problems Kalnichevski, Oleg a écrit : You are more than welcome to ask any kind of HttpClient related questions Oleg -Original Message- From: Mathias Cianci [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 3:02 PM To: Commons HttpClient Project

change cookie value

2004-07-30 Thread Mathias Cianci
Hello everybody, Is it possible with httpclient to change the value of a specific variable sent in a cookie by a server. For example, when the server send the cookie var1=5*var2=7*var3=4, I want to save the cookie var1=5*var2=174*var3=4 Thank you for advance, Mathias An happy httpclient-user

Re: change cookie value

2004-07-30 Thread Mathias Cianci
good, don't hesitate to tell me if I'm not really comprehensive. Michael Becke a écrit : Hi Mathias, The best way is to just create a new instance of Cookie, copying the values you want to keep, and add it to the HttpState. Mike On Jul 30, 2004, at 3:09 AM, Mathias Cianci wrote: Hello everybody

Re: change cookie value

2004-07-30 Thread Mathias Cianci
(); hs.addCookie(new Cookie(search.msn.fr, smc_classic, df=0af=0rc=50nw=0sc=rs=1, /, d, false)); hs.addCookie(new Cookie(search.msn.fr, smc_g, v=1pvs=classicssp=1df=1, /, d, false)); client.setState(hs); Mathias Cianci a écrit : Thank you Mike. But after a long reflexion, I've

how to accept all cookies ?

2004-07-21 Thread Mathias Cianci
Hello everybody, When I'm sending requests to Yahoo search engine, I get this type of warning message : 21 juil. 2004 09:56:32 org.apache.commons.httpclient.HttpMethodBase processResponseHeaders ATTENTION: Cookie rejected: $Version=0; B=deli0110fs8drb=2; $Domain=.yahoo.com; $Path=/. Domain

Re: how to accept all cookies ?

2004-07-21 Thread Mathias Cianci
refer to the HttpClient cookie guide: http://jakarta.apache.org/commons/httpclient/cookies.html Oleg -Original Message- From: Mathias Cianci [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 9:58 To: [EMAIL PROTECTED] Subject: how to accept all cookies ? Hello everybody, When I'm

Re: how to accept all cookies ?

2004-07-21 Thread Mathias Cianci
-Original Message- From: Mathias Cianci [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 10:19 To: Commons HttpClient Project Subject: Re: how to accept all cookies ? Thank you for this answer, but I've already seen that :-( Here's a part of my source code : System.getProperties

Re: how to accept all cookies ?

2004-07-21 Thread Mathias Cianci
Thank you, now it works ! I only had to make a new constructor for MyGetMethod public MyGetMethod(String uri) { super(uri); setFollowRedirects(true); } Have a nice day ! Elijah Baley a écrit : Here is how I did it: 1. derive your own method from the one you want