|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[ curl-Bugs-3404495 ] COOKIELIST producing invalid cookie.
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 06 Sep 2011 00:02:20 +0200
Bugs item #3404495, was opened at 2011-09-05 23:04
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
1)A web application sets a cookie using:
2)A programmer tries to modify this value using using setopt(), the only difference is the PATH part of the cookie. (the paths overlap such as / and /form/ but the variable name is identical)
The malformed HTTP request:
This cookie value CAN NEVER HAPPEN IN A BROWSER. But more importantly why would a programmer want this? How is this behavior useful? As a user of your software i just want to modify this cookie value, but the end result is that whatever value i set is ignored because all web application platforms just pick the first cookie value. This is clearly broken.
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
----------------------------------------------------------------------
Comment By: Michael Brooks (sitewatch)
Message:
In this condition that this is the first page fetch against this php file
So what I'm hearing is that every web application programming langue is
IMHO this is how it should have been from the beginning:
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
The cookie you receive from the server is under the path "/form/" while
The HTTP request is not malformed due to this. It isn't what you want,
You probably want to set your replacement cookie for the same path as you
I still don't see a bug here.
----------------------------------------------------------------------
Comment By: Michael Brooks (sitewatch)
Message:
<?php
Now, try modifying this cookie value with this string:
With curl fire off a get request against the page, $_COOKIE['lang'] will
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Sure, you want a feature: to easily replace a particular cookie.
The COOKIELIST interface is not the most convenient for this, as you need
Discussions for how to do things better and/or provide a better interface
----------------------------------------------------------------------
Comment By: Michael Brooks (sitewatch)
Message:
But at the end of the day i know i have a cookie with the variable name
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
First, what's the URL of the site that sets the cookie in step (1) ?
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info