[Python-checkins] python/dist/src/Doc/lib liburllib.tex,1.40.8.4,1.40.8.5 liburllib2.tex,1.6.8.3,1.6.8.4

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 12 Jul 2003 00:35:37 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv30300/Doc/lib

Modified Files:
      Tag: release22-maint
	liburllib.tex liburllib2.tex 
Log Message:
Patch #549151, rev4: redirect POST on 301 also.


Index: liburllib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liburllib.tex,v
retrieving revision 1.40.8.4
retrieving revision 1.40.8.5
diff -C2 -d -r1.40.8.4 -r1.40.8.5
*** liburllib.tex	25 Apr 2003 05:31:43 -0000	1.40.8.4
--- liburllib.tex	12 Jul 2003 07:35:35 -0000	1.40.8.5
***************
*** 224,233 ****
  \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.
  
  \note{According to the letter of \rfc{2616}, 301 and 302 responses to
--- 224,233 ----
  \begin{classdesc}{FancyURLopener}{...}
  \class{FancyURLopener} subclasses \class{URLopener} providing default
! 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

Index: liburllib2.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liburllib2.tex,v
retrieving revision 1.6.8.3
retrieving revision 1.6.8.4
diff -C2 -d -r1.6.8.3 -r1.6.8.4
*** liburllib2.tex	16 May 2003 03:08:36 -0000	1.6.8.3
--- liburllib2.tex	12 Jul 2003 07:35:35 -0000	1.6.8.4
***************
*** 420,425 ****
  
  \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.}
  
  \end{methoddesc}
--- 420,428 ----
  
  \note{The default implementation of this method does not strictly
!  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}
***************
*** 442,447 ****
                                                    fp, code, msg, hdrs}
  The same as \method{http_error_301()}, but called for the
! `see other' redirect response.
  \end{methoddesc}
  
  \subsection{ProxyHandler Objects \label{proxy-handler}}
--- 445,455 ----
                                                    fp, code, msg, hdrs}
  The same as \method{http_error_301()}, but called for the
! `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}}