cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Form name?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 26 Aug 2002 15:30:43 +0200 (MET DST)

On Sun, 25 Aug 2002 pozmu_at_tenbit.pl wrote:

> I have a form:
>
> <form name="loginform" action="login.php">
> <input type="hidden" name="user" value="test"></form>
>
> How can I send this one with curl? This example:
>
> curl -d "user=test" http://server.com/login.php

That's exactly how you do it.

> is almost good, but it doesn't contain form name ("loginform") - how
> can I include it?

Have you tried posting that form with your browser and seen what it does? The
name of the form is not posted, the name is only meant for local uses (read
javascript).

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-08-26