RE : RE : can't get URL with curl
Date: Wed, 8 Dec 2004 23:16:25 +0100
OK this worked greaaaaat !!!! I was able to get this &#?§£ URL. Here is
what I did on the command line:
curl -c mycookie.txt urlpage1.html
curl -c mycookie.txt urlpage2.html
curl -c mycookie.txt urlpage3.html
I'm trying to do the same with libcurl, and it doesn't work that well.
I set the option CURLOPT_COOKIEFILE to a filename that doesn't exist, it
seemed to work too, but the "get page2" call returned pages 1 AND 2,
"get page3" returned pages 1, 2 and 3 etc. I mean, the "get page2" call
returned in the same file both page 1 and page 2 returned by Internet
Explorer. How to do with libcurl the command line options "-c" and "-b"
De : curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] De la part de Daniel Stenberg
Envoyé : mardi 7 décembre 2004 21:35
À : curl tool talk
Objet : Re: RE : can't get URL with curl
On Tue, 7 Dec 2004, Ilann Cohen wrote:
> As you said it looks like a cookie thing. Here is what I do with
> Internet Explorer: I filled the input form by hand
And when you went to the page that contains the form with IE, it
you a cookie that IE stored and used when you submitted data.
You can do the same and record the cookies and then submit with cookies
you'll have a much bigger chance of succeeding.
LiveHTTPHeaders is the answer to your prayers. Use it! :-)
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-12-08