From httpclient-users-return-9879-apmail-hc-httpclient-users-archive=hc.apache.org@hc.apache.org Tue Nov 29 23:13:11 2011 Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36B26771B for ; Tue, 29 Nov 2011 23:13:11 +0000 (UTC) Received: (qmail 85226 invoked by uid 500); 29 Nov 2011 23:13:08 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 85178 invoked by uid 500); 29 Nov 2011 23:13:08 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 85144 invoked by uid 99); 29 Nov 2011 23:13:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 23:13:08 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of samcrawford@gmail.com designates 209.85.210.179 as permitted sender) Received: from [209.85.210.179] (HELO mail-iy0-f179.google.com) (209.85.210.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 23:13:03 +0000 Received: by iafi7 with SMTP id i7so11228138iaf.10 for ; Tue, 29 Nov 2011 15:12:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=hhteK+tSTVMZTsr4vVNlyLixmyZJFCXlTR9gdQbh1uU=; b=eVsYWFIvBl6S33i4zesVxXYSF0KbCpnQn/vPDETBsCr+LD5vLlCvwUx61edNfFiwX5 +TRjjULSl4zXzbRlO6gZVmAfsy95ikJV71wXf2hj+QmMu12kR6sUBCA7Uc7uWXezsbgC sxRRW68BhpbgrqUbFICSsScNqyp9EMBhKmkII= MIME-Version: 1.0 Received: by 10.231.45.9 with SMTP id c9mr4864539ibf.73.1322608362595; Tue, 29 Nov 2011 15:12:42 -0800 (PST) Received: by 10.231.81.18 with HTTP; Tue, 29 Nov 2011 15:12:42 -0800 (PST) In-Reply-To: References: Date: Tue, 29 Nov 2011 23:12:42 +0000 Message-ID: Subject: Re: How to handle auto-submit form in response? From: Sam Crawford To: HttpClient User Discussion Content-Type: text/plain; charset=ISO-8859-1 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, Sam On 29 November 2011 22:11, Yao Dong wrote: > I send a request to a web server. And the request is redirect to a auto-submit form > > >
> ... > > > 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