summaryrefslogtreecommitdiffstats
path: root/Doc/lib/liburllib.tex
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-07-12 07:33:32 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-07-12 07:33:32 (GMT)
commit162f081fb3c3e68e08e477a87311121fd5b72b18 (patch)
tree736a8f5225ce60937579b4d66db95ac48b1df80b /Doc/lib/liburllib.tex
parenta685f522566edb585db2c9598b8cc36417e9fe95 (diff)
downloadcpython-162f081fb3c3e68e08e477a87311121fd5b72b18.zip
cpython-162f081fb3c3e68e08e477a87311121fd5b72b18.tar.gz
cpython-162f081fb3c3e68e08e477a87311121fd5b72b18.tar.bz2
Patch 549151, rev4: redirect posts for 301 also. Will backport to 2.2.
Diffstat (limited to 'Doc/lib/liburllib.tex')
-rw-r--r--Doc/lib/liburllib.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/lib/liburllib.tex b/Doc/lib/liburllib.tex
index a8ee7bc..386f33e 100644
--- a/Doc/lib/liburllib.tex
+++ b/Doc/lib/liburllib.tex
@@ -257,12 +257,12 @@ actually retrieve a resource at an \file{https:} URL.
\begin{classdesc}{FancyURLopener}{...}
\class{FancyURLopener} subclasses \class{URLopener} providing default
-handling for the following HTTP response codes: 301, 302, 303 and 401.
-For 301, 302 and 303 response codes, the \mailheader{Location} header
-is used to fetch the actual URL. For 401 response codes
-(authentication required), basic HTTP authentication is performed.
-For 301, 302 and 303 response codes, recursion is bounded by the value
-of the \var{maxtries} attribute, which defaults 10.
+handling for the following HTTP response codes: 301, 302, 303, 307 and
+401. For the 30x response codes listed above, the
+\mailheader{Location} header is used to fetch the actual URL. For 401
+response codes (authentication required), basic HTTP authentication is
+performed. For the 30x response codes, recursion is bounded by the
+value of the \var{maxtries} attribute, which defaults to 10.
\note{According to the letter of \rfc{2616}, 301 and 302 responses to
POST requests must not be automatically redirected without