commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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.


-----Message d'origine-----
De : Javi []
Envoyé : lundi 19 avril 2004 02:35
À :
Objet : HttpClient Post redirect problem

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!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message