cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Using curl to view your score in AA

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 16 Jan 2004 13:15:14 +0100 (CET)

On Thu, 15 Jan 2004, Jonathan deWerd wrote:

> I am making a little status application that will let u see your
> accumulated score in a game (America's Army) without actually going
> onto the website. I am using curl to do this. the first thing i do is:
> curl http://login.americasarmy.com/login_ack.php -F fldUsername=(name)
> -F fldPassword=(password -c -

The form on the page http://login.americasarmy.com/login.php is not a
multipart form, and thus -F is not right for you. Use a -d post instead.

> This works great! I get the PHPSESSID cookie just fine.

... and how do you know this works great?

> but when I try to use it: curl http://login.americasarmy.com/index.php -b
> PHPSESSID=(the contents of cookie that I got above)
> -ehttp://login.americasarmy.com/login_ack.php -A Mozilla/4.0 It dosnt work .

So perhaps it didn't work that great? Also, doesn't the above use any redirect
or something so that you might need -L as well?

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-16