cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl command line and login to phpbb forum

From: Oren Amsalem <oren_amsalem1_at_hotmail.com>
Date: Wed, 23 Jul 2008 16:22:03 +0300

thanks but

curl -d password=pass -d username=user -d redirect= -d login=Log+in -c
cookiefile.txt -b cookiefile.txt http://link/login.php
give not result

This one
curl -d password=pass -d username=user -d redirect= -d login=Log+in -c
cookiefile.txt -b cookiefile.txt http://link/login.php
give back

curl: (6) Could not resolve host: password=pass; Host not found

But how can he use the cookies if he just now get them?
----- Original Message -----
From: "Kjell Ericson" <Kjell.Ericson_at_haxx.se>
To: "the curl tool" <curl-users_at_cool.haxx.se>
Sent: Wednesday, July 23, 2008 3:46 PM
Subject: Re: curl command line and login to phpbb forum

> 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
>

-------------------------------------------------------------------
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