curl-users
Re: curl command line and login to phpbb forum
From: Kjell Ericson <Kjell.Ericson_at_haxx.se>
Date: Wed, 23 Jul 2008 14:46:34 +0200 (CEST)
Date: Wed, 23 Jul 2008 14:46:34 +0200 (CEST)
On Wed, 23 Jul 2008, Oren Amsalem wrote:
> I cant mange to log in to forum with curl command line...
...
> curl -d -k username=no_alone -d password=***** -d redirect= -d login=Log+in
> http://forumlink/login.php
...
> Set-Cookie: phpbb2mysql_sid=dbbb779f7ae6412c18023ba6d73940a2; path=/
First error usually is the cookies. Make a try adding "-c cookiefile.txt -b
cookiefile.txt" to the commandline. That will store and send the cookies for
you.
// Kjell
-------------------------------------------------------------------
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 2008-07-23