cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Can some find that out here , with this cookie

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 21 Jun 2001 14:12:44 +0200 (MET DST)

On Thu, 21 Jun 2001, Rene R. Nielsen wrote:

> curl -v -i -L -b headers --user-agent "Opera/5.0 (Windows NT 4.0
> ;US)" -L "http://job.ofir.dk/default.asp?jobtype=0&findfirma=&region=1"

If you want curl to follow Locations, don't use _two_ -L option flags, as the
second one will toggle off the option again.

> this do not send back there correct data

What is "correct data" then?

> curl -v -i -L -b -D headers --user-agent "Opera/5.0 (Windows
> NT 4.0;US)" -L "http://job.ofir.dk/job1.asp?jobtype=0&findfirma=&region=1"

Again, this has -L present twice.

> Connected to job.ofir.dk (195.249.237.49)
> GET /job1.asp?jobtype=0&findfirma=&region=1 HTTP/1.1
> User-Agent: Opera/5.0 (Windows NT 4.0;US)
> Host: job.ofir.dk
> Pragma: no-cache
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

[ response cut off ]

> also this do not work because it tell me that the cookie is not correct
> in the line <a HREF="nocookie.asp">

Yes. It probably expects you to send a cookie, which you didn't.

> i have also tried this
>
> curl -v -i -L -b z -D headers -d jobtype=0&findfirma=&region=1"
> --user-agent "Opera/5.0 (Windows NT 4.0;US)" -L
> "http://job.ofir.dk/job1.asp

Again, two -L.

It might help if you tried to tell us what you're trying to achive. Are you
"emulating" a filled in form here? In that case, what does the HTML <form>
look like?

How do you check the page with a browser?

-- 
     Daniel Stenberg -- curl dude -- http://curl.haxx.se/
Received on 2001-06-21