cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Bug with IPv6 and cookies

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 9 Sep 2011 16:33:06 +0200 (CEST)

On Fri, 9 Sep 2011, mailsvb wrote:

> I believe this to be a bug in curl. I can reproduce it with the command line
> tool and the curl PHP extension. It has to do with cookies and IPv6.
>
> I am logging into a webpage by sending a URL with username and password. I
> get a cookie and save this cookie to a file in order to use it during the
> next GET requests I send to the same webpage (for authentication) This works
> perfect when using IPv4, please see attached curl debug with IPv4 protocol.
>
> When I do the exact same thing with the same webpage, only difference is: I
> am contacting the IPv6 address, Authentication does not work. In the
> attached log files I can see that when using IPv6, the cookie information is
> not passed into the next request, althoug I'm using the same code as with
> IPv4 addresses.

Thanks for the report.

How do you invoke curl when you see this problem? Do you use -c to save the
cookies or just -b and specify two URLs on the same command line?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-09