cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl basics

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Wed, 12 Mar 2008 09:03:01 -0500

On Wed, Mar 12, 2008 at 7:22 AM, andrew holway <andrew_at_moonet.co.uk> wrote:

> No still the same, after running the second command it says "no cookie!"
>
> Im not sure if that is coming from curl or server I think curl
>
> running these
>
> curl --verbose -A="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8)
> Gecko/20071022 Ubuntu/7.10 (gutsy) Firefox/2.0.0.8" -d
> "name=bobscule&password=74m5r6up4" -c=jar
> http://s2.ikariam.org/index.php?action=loginAvatar&function=login
>
> curl -L -b=jar -d
> "CityScreen&function=upgradeBuilding&id=60872&position=3&level=1"
> http://s2.ikariam.org/index.php
>

Did you try it without the equal sign??

   curl -L -b jar -d .....

Also, you should be aware that "-b jar" means "load up cookies from the file
called jar", which would be empty unless cookies have been put in it
previously. You might want to add "-c jar" so that curl writes out any new
cookies it receives.

Ralph Mitchell
Received on 2008-03-12