Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix C89 compat | Anatol Belski | 2014-07-14 | 1 | -2/+2 |
| | |||||
* | Bug #67609: TLS connections fail behind HTTP proxy | Daniel Lowrey | 2014-07-12 | 1 | -2/+9 |
| | |||||
* | Merge branch 'PHP-5.5' into PHP-5.6 | Adam Harvey | 2014-06-12 | 1 | -2/+3 |
|\ | | | | | | | | | * PHP-5.5: Follow 308 Permanent Redirect responses. | ||||
| * | Follow 308 Permanent Redirect responses. | Adam Harvey | 2014-06-12 | 1 | -2/+3 |
| | | | | | | | | Fixes bug #67430 (http:// wrapper doesn't follow 308 redirects). | ||||
| * | Bump year | Xinchen Hui | 2014-01-03 | 1 | -1/+1 |
| | | |||||
* | | Bump year | Xinchen Hui | 2014-01-03 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'PHP-5.5' | Michael Wallner | 2013-10-01 | 1 | -32/+34 |
|\ \ | |/ | | | | | | | | | | | | | * PHP-5.5: Fixed bug #61548 Conflicts: ext/standard/http_fopen_wrapper.c | ||||
| * | Fixed bug #61548 | Michael Wallner | 2013-10-01 | 1 | -30/+31 |
| | | |||||
* | | Request non-keep-alive connections by default in HTTP 1.1 requests. | Adam Harvey | 2013-09-11 | 1 | -2/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As noted in FR #65634, at present we don't send a Connection request header when the protocol version is set to 1.1, which means that RFC-compliant Web servers should respond with keep-alive connections. Since there's no way of reusing the HTTP connection at present, this simply means that PHP will appear to hang until the remote server hits its connection timeout, which may be quite some time. This commit sends a "Connection: close" header by default when HTTP 1.1 (or later) is requested by the user via the context options. It can be overridden by specifying a Connection header in the context options. It isn't possible to disable sending of the Connection header, but given "Connection: keep-alive" is the same as the default HTTP 1.1 behaviour, I don't see this as a significant issue — users who want to opt in for that still can. As a note, although I've removed an efree(protocol_version), this doesn't result in a memory leak: protocol_version is freed in the out: block at the end of the function anyway, and there are no returns between the removed efree() and the later call. Yes, I ran the tests with valgrind to check that. ☺ Implements FR #65634 (HTTP wrapper is very slow with protocol_version 1.1). | ||||
* | | Constify streams API and a few other calls down the rabbit hole. | Andrey Hristov | 2013-07-30 | 1 | -2/+3 |
|/ | | | | | (`char *` to `const char *` for parameters and few return values) In a few places int len moved to size_t len. | ||||
* | Fix bug #64433: does not follow redirects for non-3xx response codes | Sergey Akbarov | 2013-03-30 | 1 | -3/+6 |
| | |||||
* | Fix bug #62524, only follow redirects in file streams for 3xx HTTP statuses | Stanislav Malyshev | 2013-01-29 | 1 | -2/+4 |
| | |||||
* | Happy New Year | Xinchen Hui | 2013-01-01 | 1 | -1/+1 |
| | |||||
* | - Year++ | Felipe Pena | 2012-01-01 | 1 | -1/+1 |
| | |||||
* | - Fixed bug #60570 (http wrapper leaks context resource if request fails/is | Gustavo André dos Santos Lopes | 2011-12-21 | 1 | -3/+0 |
| | | | | | redirected). | ||||
* | bail out if reading HTTP headers failed | Antony Dovgal | 2011-11-08 | 1 | -1/+4 |
| | |||||
* | Avoiding strcpy, strcat, sprintf usage to make static analyzer happy | Xinchen Hui | 2011-08-09 | 1 | -2/+2 |
| | |||||
* | Fixed bug #54137 (file_get_contents POST request sends additional line break). | Ilia Alshanetsky | 2011-05-29 | 1 | -1/+0 |
| | |||||
* | Added ability to connect to HTTPS sites through proxy with basic ↵ | Dmitry Stogov | 2011-01-28 | 1 | -8/+108 |
| | | | | authentication using stream_context/http/header/Proxy-Authorization | ||||
* | Fixed variable re-declaration | Ilia Alshanetsky | 2011-01-12 | 1 | -9/+9 |
| | |||||
* | - Year++ | Felipe Pena | 2011-01-01 | 1 | -1/+1 |
| | |||||
* | - Fixed bug #53198 (changing INI setting "from" with ini_set did not have any | Gustavo André dos Santos Lopes | 2010-10-29 | 1 | -2/+2 |
| | | | | | | | effect) #Made "from" a proper INI setting and bound it to a global variable. #Previously, it was simply read from the hash table with the parsed ini file #by using cfg_get_string (I wonder why this mechanism still exists...) | ||||
* | -fix logic (and BC break) | Pierre Joye | 2010-08-23 | 1 | -1/+1 |
| | |||||
* | - add follow_location support for http stream, enabled by default to keep ↵ | Pierre Joye | 2010-08-23 | 1 | -3/+9 |
| | | | | BC. Allows one to ignore the location header, w/o having to ignore errors or other tricks, the location data is however still available (meta) | ||||
* | - WS | Pierre Joye | 2010-08-16 | 1 | -22/+22 |
| | |||||
* | Removed safe_mode | Kalle Sommer Nielsen | 2010-04-26 | 1 | -1/+1 |
| | | | | | | | * Removed ini options, safe_mode* * Removed --enable-safe-mode --with-exec-dir configure options on Unix * Updated extensions, SAPI's and core * php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore | ||||
* | - Fixed bug #50832 (HTTP fopen wrapper does not support passwordless HTTP ↵ | Jani Taskinen | 2010-01-25 | 1 | -4/+8 |
| | | | | authentication) | ||||
* | sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php | Sebastian Bergmann | 2010-01-03 | 1 | -1/+1 |
| | |||||
* | Fixed bug #50451 (http wrapper breaks on 2048 char long headers) | Ilia Alshanetsky | 2009-12-13 | 1 | -2/+5 |
| | | | | | | # Improvement on the fix for bug #49851 | ||||
* | Fixed bug #49851 (http wrapper breaks on 1024 char long headers). | Ilia Alshanetsky | 2009-12-10 | 1 | -0/+4 |
| | |||||
* | - Switching to TSRMLS_FETCH version | Felipe Pena | 2009-11-16 | 1 | -1/+1 |
| | |||||
* | - Fixed bug #49936 (crash with ftp stream in php_stream_context_get_option()) | Felipe Pena | 2009-11-15 | 1 | -1/+1 |
| | | | | | (patch by Pierrick) | ||||
* | fix memleak and possible segfault in HTTP fopen wrapper | Antony Dovgal | 2009-08-04 | 1 | -1/+4 |
| | |||||
* | - Fixed bug #43510 (stream_get_meta_data() does not return same mode as used ↵ | Jani Taskinen | 2009-08-01 | 1 | -1/+4 |
| | | | | in fopen) | ||||
* | Fixed bug #48929 (Double \r\n after HTTP headers when "header" context ↵ | Jani Taskinen | 2009-07-20 | 1 | -1/+2 |
| | | | | option is an array) | ||||
* | Fixed bug #38802 (max_redirects and ignore_errors) | Arnaud Le Blanc | 2009-05-16 | 1 | -4/+6 |
| | | | | | (patch by datibbaw@php.net) | ||||
* | MFH: fix potential free of NULL | Greg Beaver | 2009-05-14 | 1 | -1/+3 |
| | |||||
* | MFH: - Fixed Bug #45092header HTTP context option not being used ↵ | Jani Taskinen | 2009-05-05 | 1 | -7/+25 |
| | | | | (--with-curlwrappers) | ||||
* | - Sync with HEAD | Jani Taskinen | 2009-05-05 | 1 | -10/+10 |
| | |||||
* | - Added "dechunk" filter which can decode HTTP responces with chunked ↵ | Dmitry Stogov | 2009-04-16 | 1 | -0/+25 |
| | | | | | | | transfer-encoding. HTTP streams use this filter automatically in case "Transfer-Encoding: chunked" header presents in responce. It's possible to disable this behaviour using "http"=>array("auto_decode"=>0) in stream context - Fixed bug #47021 (SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked") | ||||
* | MFH: Bump copyright year, 3 of 3. | Sebastian Bergmann | 2008-12-31 | 1 | -1/+1 |
| | |||||
* | MFH: Fixed previous fix | Arnaud Le Blanc | 2008-07-29 | 1 | -4/+9 |
| | |||||
* | MFH: When automatically redirecting an HTTP request, use the GET method when the | Arnaud Le Blanc | 2008-07-28 | 1 | -4/+11 |
| | | | | | | | | | | | | | | | | original method was not HEAD or GET (fixes #45540) # # The RFC says that in case of 3xx code, "The action required MAY be # carried out [...] *only if the method used in the second request is GET or # HEAD*". # # This may not break anything as actually POST requests replying # with a Location header never worked as the redirecting request was sent using # the POST method, but without Entity-Body (and without Content-Length header, # which caused the server to reply with a "411 Length Required" or to treat # the request as GET). # | ||||
* | - Changed HTTP stream wrapper to accept any code between and including | Michael Wallner | 2008-07-25 | 1 | -19/+19 |
| | | | | | 200 to 399 as successful. (patch by Noah Fontes) | ||||
* | MFH: manage references of stream context properly | Antony Dovgal | 2008-07-11 | 1 | -0/+3 |
| | |||||
* | Lazy EG(active_symbol_table) initialization | Dmitry Stogov | 2008-04-29 | 1 | -0/+4 |
| | |||||
* | Fixed bug #44603 (Order issues with Content-Type/Length headers on POST) | Ilia Alshanetsky | 2008-04-06 | 1 | -4/+24 |
| | |||||
* | WS | Ilia Alshanetsky | 2008-01-07 | 1 | -2/+2 |
| | |||||
* | MFH: Bump copyright year, 2 of 2. | Sebastian Bergmann | 2007-12-31 | 1 | -1/+1 |
| | |||||
* | - MFH: Fixed a segfault when reading from an HTTP stream. | Derick Rethans | 2007-11-29 | 1 | -1/+1 |
| |