Anonymous | Login | Signup for a new account | 12-17-2024 10:50 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003317 | [Quercus] | block | always | 02-04-09 11:34 | 02-04-09 15:55 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 4.0.0 | Product Version | 4.0.0 | ||||
Product Build | |||||||||
Summary | 0003317: stream_context_create / fopen mangles headers | ||||||||
Description |
<?php $server_addr = 'http://api.facebook.com/restserver.php'; [^] $user_agent = 'test client'; $content = 'abcdefg'; $content_length = strlen($content); $context = array('http' => array('method' => 'POST', 'user_agent' => $user_agent, 'header' => "Content-Type: text/plain\r\n" . "Content-Length: $content_length", 'content' => $content)); $context_id = stream_context_create($context); $sock = fopen($server_addr, 'r', false, $context_id); fclose($sock); Run this with a packet sniffer. Regular PHP sends an HTTP header like Content-Type: text/plain Content-Length: 7 Host: api.facebook.com User-Agent: test client but Quercus sends Host: api.facebook.com User-Agent: test client content-typ: text/plain Content-Length: 7 Note the mangling of the Content-Type: line. |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |