|
|
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: Mon, 05 Sep 2011 17:35:56 -0400
Bugs item #3404495, was opened at 2011-09-05 17: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: 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