]> granicus.if.org Git - php/commit
When automatically redirecting an HTTP request, use the GET method when the
authorArnaud Le Blanc <lbarnaud@php.net>
Mon, 28 Jul 2008 19:03:57 +0000 (19:03 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Mon, 28 Jul 2008 19:03:57 +0000 (19:03 +0000)
commitaa34fda7eedb527e67656adf64b569e1a6a9cc11
tree6c83825f0fc953a28d0d57018f2849f4f513c0cc
parentfec135a4e3ac343f227bd10f2e88e8922902268b
When automatically redirecting an HTTP request, use the GET method when the
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).
#
ext/standard/http_fopen_wrapper.c