curl-users
Re: Curl basics
Date: Wed, 12 Mar 2008 12:22:49 +0000
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
Cheers
Andy
On Wed, Mar 12, 2008 at 7:07 AM, Kjell Ericson <Kjell.Ericson_at_haxx.se> wrote:
> On Wed, 12 Mar 2008, andrew holway wrote:
>
>
> > Im doing something wrong with the cookies.
> > http://pastebin.com/m2982255
> > Could someone take a look pls?
>
> ---
> andrew_at_andrew-laptop:~$ curl -L -d -b=jar
> "CityScreen&function=upgradeBuilding&id=60872&position=3&level=1"
> http://s2.ikariam.org/index.php
>
> curl: (6) Couldn't resolve host
> 'CityScreen&function=upgradeBuilding&id=60872&position=3&level=1'
> ---
>
> Switch place of -d and -b=jar flags so you don't send "-b=jar" as data and
> give it a try.
>
> // Kjell
>
Received on 2008-03-12