1234567891011121314151617181920212223242526272829303132 |
- --TEST--
- Bug #73297 (Ignore 100 Continue returned by HTTP/1.1 servers)
- --INI--
- allow_url_fopen=1
- --SKIPIF--
- <?php require 'server.inc'; http_server_skipif(); ?>
- --FILE--
- <?php
- require 'server.inc';
- $options = [
- 'http' => [
- 'protocol_version' => '1.1',
- 'header' => 'Connection: Close'
- ],
- ];
- $ctx = stream_context_create($options);
- $responses = [
- "data://text/plain,HTTP/1.1 100 Continue\r\n\r\nHTTP/1.1 200 OK\r\n\r\n"
- . "Hello"
- ];
- ['pid' => $pid, 'uri' => $uri] = http_server($responses);
- echo file_get_contents($uri, false, $ctx);
- echo "\n";
- http_server_kill($pid);
- --EXPECT--
- Hello
|