summaryrefslogtreecommitdiffstats
path: root/Doc/lib/liburllib2.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/liburllib2.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/liburllib2.tex')
-rw-r--r--Doc/lib/liburllib2.tex14
1 files changed, 11 insertions, 3 deletions
diff --git a/Doc/lib/liburllib2.tex b/Doc/lib/liburllib2.tex
index f88fd25..783105f 100644
--- a/Doc/lib/liburllib2.tex
+++ b/Doc/lib/liburllib2.tex
@@ -424,8 +424,11 @@ redirect. Otherwise, raise \exception{HTTPError} if no other
if you can't but another \class{Handler} might.
\note{The default implementation of this method does not strictly
- follow \rfc{2616}: it allows automatic 302 redirection of POST
- requests, because essentially all HTTP clients do this.}
+ follow \rfc{2616}, which says that 301 and 302 responses to POST
+ requests must not be automatically redirected without confirmation by
+ the user. In reality, browsers do allow automatic redirection of
+ these responses, changing the POST to a GET, and the default
+ implementation reproduces this behaviour.}
\end{methoddesc}
@@ -446,9 +449,14 @@ The same as \method{http_error_301()}, but called for the
\begin{methoddesc}[HTTPRedirectHandler]{http_error_303}{req,
fp, code, msg, hdrs}
The same as \method{http_error_301()}, but called for the
-`see other' redirect response.
+`see other' response.
\end{methoddesc}
+\begin{methoddesc}[HTTPRedirectHandler]{http_error_307}{req,
+ fp, code, msg, hdrs}
+The same as \method{http_error_301()}, but called for the
+`temporary redirect' response.
+
\subsection{ProxyHandler Objects \label{proxy-handler}}
\begin{methoddescni}[ProxyHandler]{\var{protocol}_open}{request}