Bug #40626
Cookie - Setting throws exception in Http\Response
Status: | Resolved | Start date: | 2012-09-04 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Robert Lemke | % Done: | 100% |
|
Category: | Http | |||
Target version: | TYPO3 Flow Base Distribution - 2.0 beta 1 | |||
PHP Version: | 5.4 | Complexity: | medium | |
Has patch: | No | Affected Flow version: | Git 1.2 (master) |
Description
The "Set-Cookie" headers must be set via setCookie().
28 TYPO3\FLOW3\Http\Headers::set("Set-Cookie", "JSESSIONID=0000bpxjzMKKBYiEQM5yG5xd5CG:15rk67n7r; Path=/", boolean)
If the foreign webserver sends an header "Set-Cookie" FLOW3 throws an Exception, and breaks header - parsing. So no content from Servers sending cookies can be extracted.
Related issues
History
#1 Updated by Robert Lemke almost 3 years ago
- Status changed from New to Needs Feedback
- Priority changed from -- undefined -- to Should have
- Target version set to 1.1.1
- PHP Version set to 5.4
- Complexity set to medium
Thanks for the report. Can you give some more info about the steps to reproduce this bug? Were you using the Http\Client\Browser API?
#2 Updated by Ferdinand Kuhl almost 3 years ago
Exactly. Together with curlEngine. (Where another bug is, that no host-header is sent - which violates HTTP/1.1 - Protocol, but I will open a new Issue with patch shortly for that)
But reproduction is possible if you use the Example from Http foundation together with this url:
$response = $this->browser->request('http://typo3.org/https-ajax/info/user.xml');
#3 Updated by Karsten Dambekalns over 2 years ago
- Status changed from Needs Feedback to Resolved
- Target version changed from 1.1.1 to 2.0 beta 1
- % Done changed from 0 to 100
#4 Updated by Karsten Dambekalns over 2 years ago
The Host header is sent as well, btw…