/
proc
/
3430793
/
cwd
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
http
/
File Upload :
llllll
Current File: //proc/3430793/cwd/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/http/bug79265_2.phpt
--TEST-- Bug #79265 variation: "host:" not at start of header --INI-- allow_url_fopen=1 --SKIPIF-- <?php require 'server.inc'; http_server_skipif(); ?> --FILE-- <?php require 'server.inc'; $responses = array( "data://text/plain,HTTP/1.1 200 OK\r\n\r\n", ); ['pid' => $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
Copyright ©2k19 -
Hexid
|
Tex7ure