curl-library
Re: Bug report: cookies and redirection
Date: Wed, 9 Apr 2008 21:33:12 -0700
On Wed, Apr 09, 2008 at 04:56:45PM -0500, Ben Combee wrote:
> Here's one problem I saw with libcurl 7.17.1 (hadn't retried with
> 7.18.1 but didn't see anything in change notes that seemed like it
> would affect this). I used both CURLOPT_COOKIE and
> CURLOPT_FOLLOWLOCATION for a handle. In watching the HTTP traffic,
> the cookie I'd set for the original URL also got sent to the
> redirected URL. For example, if http://foo.org/video redirected to
> http://contentcache.org/video, the cookie would be sent to both even
> though it's only valid for the original domain.
I've just checked in test 1024 which tests cookies across redirects, and
both the CVS version of curl and 7.17.1 work fine. Test 1024 only tests
cookies in different paths on a single server, but when I hacked the
test to simulate multiple servers it still worked as expected.
How is this test case different from your situation? Can you show us logs
of such a session?
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-04-10