cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: newbie questions

From: Daniel Stenberg <Daniel.Stenberg_at_haxx.nu>
Date: Mon, 14 Feb 2000 08:08:22 +0100

"Jeff K.V. Bhavnanie" wrote:

> 1) When I use curl to fill in a form, and the form has 2 submit buttons, how
> do i make select one using curl? (eg) Instead of submit, clear buttons, this
> form has submit1 submit2.

Every submit button has its own name and value set. When a user presses a
particular submit button, that button's name and value will be passed on.

You can very easily try this out by making a web page with a form like
that and set the submit type to GET which will let you see all the
'name=content' constructs in the URL.

> 2) has anyone done a script to automate form filling on the web?

I once initiated the work now found in perl/formfind.pl which is supposed
to display detailed info about all forms of a web page and everything
needed to use curl to submit it.

> It would be a
> lot of help for a newbie if you could share it.

Anyone is welcome to continue that work, or bring something entirely new.

--
   Daniel Stenberg - http://www.contactor.se/~dast - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on 2000-02-14