cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Troubles with the POST method

From: Alessandro Vesely <vesely_at_tana.it>
Date: Wed, 14 Nov 2007 16:50:10 +0100

Michel Hua wrote:
> I read the 4.2 section of that documentation
> <http://curl.haxx.se/docs/httpscripting.html> for that, but I wasn't able
> to have the same results as doing it "with hands".

You probably missed the chapter "10. Cookies"

> This following command :
>
> curl -d
> "action=recherche&sn=&pseudo=&groupe=&residence=&givenname=&promo=&roomnumber=f104&geniegtrois=&departement=centrale"
> http://eleves.ec-lille.fr/?module=trombi | tail --lines=50
>
> doesn't give what I expected, there's nothing between the <div
> id="resultats"></div> tags.

try to

1. get the cookie, e.g.
   curl --cookie-jar eleves http://eleves.ec-lille.fr/?module=trombi

2. use it, e.g.
   curl --cookie eleves -d [...same as your line above...]
Received on 2007-11-14