hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Redirect is not followed on POST
Date Tue, 08 Jun 2010 13:37:50 GMT
On Mon, 2010-06-07 at 22:29 -0700, droidin.net wrote:
> I'm trying to automate 2-step search request. There's no JS and no
> authentication the form is HTTP Post to ASP page followed by 302 GET
> redirect which supposed to return batch of search results. Subsequent GET
> requests can be issued to paginate through results. My problem is that when
> I execute the form it comes back with 200 and the same page that contains
> the initial POST form. I'm wondering if the redirect is not followed for
> some reason and if so - how can I force it? I'm using HttpClient 4
> Thanks,
> Bo

Per requirements of the HTTP specification redirects on POST methods may
not be handled automatically without a user intervention. You can
override the standard compliant behavior by implementing a custom
redirect handler / strategy.

Hope this helps


To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message