commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JEAN REMI LECQ" <jrl...@easyvoyage.fr>
Subject RE: HttpClient Post redirect problem
Date Mon, 19 Apr 2004 07:52:49 GMT
me too ! The Redirect Property of the PostMehod stay FALSE even if I wrote
"myHttpMethod.setFollowRedirects(true)". Dispite all, the redirect is
coorectly following with this method given to me by Roland Weber (Thanks
Roland !). But the error log is always written  :
>
>1. make the POST request
>2. look for the "Location" header
>3. make the GET request to the Location
>
>The output you copied shows only the requests you send.
>The Location header is not in the request, it is in the
>response to step 1. Therefore, I suspect you made a
>mistake in step 2, possibly by looking in the wrong place.
>You need to do the following:
>
>Header location = postMethod.getResponseHeader("Location");
>
>where 'postMethod' is the method you executed in step 1.
>

jeanremi

-----Message d'origine-----
De : Javi [mailto:javiersa76@yahoo.es]
Envoyé : lundi 19 avril 2004 02:35
À : commons-user@jakarta.apache.org
Objet : HttpClient Post redirect problem


Hello,
I'm ussing the HttpClient and I'm not able to set the Redirect Property of
the PostMehod to TRUE. I use the SetFollowRedirects to True, but when I
debug, it does not change!


Regards,
Javi


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message