Bug #73297 [NEW]: HTTP stream wrapper should ignore HTTP 100 Continue
| From: | rowan dot collins at gmail dot com | Date: | Tue, 11 Oct 2016 21:02:07 +0000 |
| Subject: | Bug #73297 [NEW]: HTTP stream wrapper should ignore HTTP 100 Continue | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-204610@lists.php.net to get a copy of this message | ||
From: rowan dot collins at gmail dot com
Operating system:
PHP version: master-Git-2016-10-11 (Git)
Package: Streams related
Bug Type: Bug
Bug description:HTTP stream wrapper should ignore HTTP 100 Continue
Description:
------------
This bug report forms part of an attempt to test and fix the
implementation of HTTP/1.1 in the HTTP stream wrapper. See
http://marc.info/?l=php-internals&m=147544280019519&w=2
A "100 Continue" response is *usually* only sent in response to an
"Expect: 100-continue" header, and *usually* only useful with requests
which have a body (e.g. POST, PUT). As such, it is unlikely to be
encountered by someone sending a GET request using e.g.
file_get_contents, but this is not guaranteed.
According to RFC 7231 section 6.2:
> A client MUST be able to parse one or more 1xx responses received
> prior to a final response, even if the client does not expect one. A
> user agent MAY ignore unexpected 1xx responses.
However, the code currently treats these statuses as errors:
> HTTP request failed! HTTP/1.1 100 Continue
--
Edit bug report at https://bugs.php.net/bug.php?id=73297&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73297&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73297&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73297&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73297&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73297&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73297&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73297&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73297&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73297&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73297&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73297&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73297&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73297&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73297&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73297&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73297&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73297&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73297&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73297&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73297&r=mysqlcfg