cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to send form NAME, -d? -F?, when multiple forms/page

From: Kjell Ericson <Kjell.Ericson_at_haxx.se>
Date: Tue, 30 Aug 2005 07:39:05 +0200 (CEST)

On Mon, 29 Aug 2005, Frank Harvey wrote:

> The web pages I'm looking at have more than one form
> per page and each form is given a distinctive name.

> The -d type of curl transfer seems simpler and, thus I presume, would be
> more favored _IF_ there were a way to specify the form name ("RENT" or
> "BUY").

You can specify -d several times to declare each field to post.

Note that your browser (at least mine) doesn't send any information about
which form that is posted. Only the content within the form. So your problem
is not existing.

A browser do not either post two forms at the same time, so I don't see the
need to try that either.

  // Kjell
Received on 2005-08-30