cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: I cannot use curl for submit a form

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 15 Jan 2009 13:04:06 +0100 (CET)

On Thu, 15 Jan 2009, Everton Zanella Alvarenga wrote:

> I tried this curl command:
>
> $ curl -b cookies.txt -d "user=LOGIN&pass=PASSWD" -L
> http://www1.folha.uol.com.br/fsp/opiniao/fz1401200904.htm

The form uses several hidden fields and you probably need to pass them on as
well. Use LiveHTTPHeaders to see what a firefox sends and send the same with
your command.

It also find it unlikely that you should send the POST to a url ending with
.htm.

See further here: http://curl.haxx.se/docs/httpscripting.html

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-15