summaryrefslogtreecommitdiff
path: root/ext/standard/http_fopen_wrapper.c
Commit message (Collapse)AuthorAgeFilesLines
* fix C89 compatAnatol Belski2014-07-141-2/+2
|
* Bug #67609: TLS connections fail behind HTTP proxyDaniel Lowrey2014-07-121-2/+9
|
* Merge branch 'PHP-5.5' into PHP-5.6Adam Harvey2014-06-121-2/+3
|\ | | | | | | | | * PHP-5.5: Follow 308 Permanent Redirect responses.
| * Follow 308 Permanent Redirect responses.Adam Harvey2014-06-121-2/+3
| | | | | | | | Fixes bug #67430 (http:// wrapper doesn't follow 308 redirects).
| * Bump yearXinchen Hui2014-01-031-1/+1
| |
* | Bump yearXinchen Hui2014-01-031-1/+1
| |
* | Merge branch 'PHP-5.5'Michael Wallner2013-10-011-32/+34
|\ \ | |/ | | | | | | | | | | | | * PHP-5.5: Fixed bug #61548 Conflicts: ext/standard/http_fopen_wrapper.c
| * Fixed bug #61548Michael Wallner2013-10-011-30/+31
| |
* | Request non-keep-alive connections by default in HTTP 1.1 requests.Adam Harvey2013-09-111-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 Hristov2013-07-301-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 codesSergey Akbarov2013-03-301-3/+6
|
* Fix bug #62524, only follow redirects in file streams for 3xx HTTP statusesStanislav Malyshev2013-01-291-2/+4
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Fixed bug #60570 (http wrapper leaks context resource if request fails/isGustavo André dos Santos Lopes2011-12-211-3/+0
| | | | | redirected).
* bail out if reading HTTP headers failedAntony Dovgal2011-11-081-1/+4
|
* Avoiding strcpy, strcat, sprintf usage to make static analyzer happyXinchen Hui2011-08-091-2/+2
|
* Fixed bug #54137 (file_get_contents POST request sends additional line break).Ilia Alshanetsky2011-05-291-1/+0
|
* Added ability to connect to HTTPS sites through proxy with basic ↵Dmitry Stogov2011-01-281-8/+108
| | | | authentication using stream_context/http/header/Proxy-Authorization
* Fixed variable re-declarationIlia Alshanetsky2011-01-121-9/+9
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* - Fixed bug #53198 (changing INI setting "from" with ini_set did not have anyGustavo André dos Santos Lopes2010-10-291-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 Joye2010-08-231-1/+1
|
* - add follow_location support for http stream, enabled by default to keep ↵Pierre Joye2010-08-231-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)
* - WSPierre Joye2010-08-161-22/+22
|
* Removed safe_modeKalle Sommer Nielsen2010-04-261-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 Taskinen2010-01-251-4/+8
| | | | authentication)
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* Fixed bug #50451 (http wrapper breaks on 2048 char long headers)Ilia Alshanetsky2009-12-131-2/+5
| | | | | | # Improvement on the fix for bug #49851
* Fixed bug #49851 (http wrapper breaks on 1024 char long headers).Ilia Alshanetsky2009-12-101-0/+4
|
* - Switching to TSRMLS_FETCH versionFelipe Pena2009-11-161-1/+1
|
* - Fixed bug #49936 (crash with ftp stream in php_stream_context_get_option())Felipe Pena2009-11-151-1/+1
| | | | | (patch by Pierrick)
* fix memleak and possible segfault in HTTP fopen wrapperAntony Dovgal2009-08-041-1/+4
|
* - Fixed bug #43510 (stream_get_meta_data() does not return same mode as used ↵Jani Taskinen2009-08-011-1/+4
| | | | in fopen)
* Fixed bug #48929 (Double \r\n after HTTP headers when "header" context ↵Jani Taskinen2009-07-201-1/+2
| | | | option is an array)
* Fixed bug #38802 (max_redirects and ignore_errors)Arnaud Le Blanc2009-05-161-4/+6
| | | | | (patch by datibbaw@php.net)
* MFH: fix potential free of NULLGreg Beaver2009-05-141-1/+3
|
* MFH: - Fixed Bug #45092header HTTP context option not being used ↵Jani Taskinen2009-05-051-7/+25
| | | | (--with-curlwrappers)
* - Sync with HEADJani Taskinen2009-05-051-10/+10
|
* - Added "dechunk" filter which can decode HTTP responces with chunked ↵Dmitry Stogov2009-04-161-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 Bergmann2008-12-311-1/+1
|
* MFH: Fixed previous fixArnaud Le Blanc2008-07-291-4/+9
|
* MFH: When automatically redirecting an HTTP request, use the GET method when theArnaud Le Blanc2008-07-281-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 includingMichael Wallner2008-07-251-19/+19
| | | | | 200 to 399 as successful. (patch by Noah Fontes)
* MFH: manage references of stream context properlyAntony Dovgal2008-07-111-0/+3
|
* Lazy EG(active_symbol_table) initializationDmitry Stogov2008-04-291-0/+4
|
* Fixed bug #44603 (Order issues with Content-Type/Length headers on POST)Ilia Alshanetsky2008-04-061-4/+24
|
* WSIlia Alshanetsky2008-01-071-2/+2
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* - MFH: Fixed a segfault when reading from an HTTP stream.Derick Rethans2007-11-291-1/+1
|