cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: HTTP Post & Tomcat J2EE Server

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 23 Nov 2004 20:10:51 +0100 (CET)

On Tue, 23 Nov 2004, akede wrote:

> The original form contains an input/image tag as the submit tag.
>
> <input type="image" name="submit"
> src="/images/de/bt_anmelden.gif;jsessionid=4a366d90699c45d6a81cbcf5f7bdb6f0"
> border="0" tabindex="3" /><br />
>
> I assume sending this information as a
>
> -d "submit_x=68&submit_y=8&"

IIRC, it is a dot not an underscore that separates the name from x and y.

> How is the correct form of submitting these information via curl?

The same way your browser sends it. Try filling in the form with your browser
and submit it and you'll see. Edit the form to use method GET and you'll see
the full POST string in your browser's address field.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-11-23