hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Crawford <samcrawf...@gmail.com>
Subject Re: How to handle auto-submit form in response?
Date Tue, 29 Nov 2011 23:12:42 GMT
Not out of the box, no. To do this properly you'd have to have a
Javascript interpreter running over the response body, checking to see
if anything was automatically submitting the form (and there are an
infinite number of ways an auto-redirect could be initiated in
Javascript). It would be very fragile, unless you only needed to
handle a set of specific auto-submit cases.

Hope this helps,


On 29 November 2011 22:11, Yao Dong <Yao.Dong@telus.com> wrote:
> I send a request to a web server. And the request is redirect to a auto-submit form
> <HTML><BODY onLoad="document.StandardPostForm.submit();">
> <form name="StandardPostForm" target="_top" method="POST" action="...">
> ...
> </HTML>
> I want this form could be submitted implicitly. Can httpclient do that?
> Thanks,

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

View raw message