--TEST-- Bug #79265 variation: "host:" not at start of header --INI-- allow_url_fopen=1 --SKIPIF-- --FILE-- $pid, 'uri' => $uri] = http_server($responses, $output); $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"RandomHeader: host:8080\r\n" . "Cookie: foo=bar\r\n" ) ); $context = stream_context_create($opts); $fd = fopen($uri, 'rb', false, $context); fseek($output, 0, SEEK_SET); echo stream_get_contents($output); fclose($fd); http_server_kill($pid); ?> --EXPECTF-- GET / HTTP/1.1 Host: %s:%d Connection: close RandomHeader: host:8080 Cookie: foo=bar