[Python-bugs-list] [ python-Bugs-568068 ] urllib needs 303/307 handlers
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 21 Oct 2002 13:42:33 -0700
Bugs item #568068, was opened at 2002-06-12 16:36
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=568068&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib needs 303/307 handlers
Initial Comment:
See
http://mail.python.org/pipermail/python-dev/2002-June/025289.htm
and
http://ppewww.ph.gla.ac.uk/~flavell/www/post-redirect.html
There is also an issue with the 302 handler (also
discussed there).
----------------------------------------------------------------------
Comment By: John J Lee (jjlee)
Date: 2002-10-21 21:42
Message:
Logged In: YES
user_id=261020
Agreement seems to have been reached on this in the
discussion of bug #549151. There is a patch there, but only
the change to the 303 case should be applied, not 301. The
docs need to state that 303 is automatically handled, too.
Jeremy Hylton, from bug #549151:
> I agree with your interpretation that urllib2 raise an
> HTTPError to signal "request confirm" because an HTTPError
> is also a valid response that the user could interpret.
> But of urllib, an HTTP error doesn't contain a valid
> response. The change would make it impossible for the
> client to do anything if a 301 response is returned from a
> POST. That seems worse than doing the wrong.
John Lee, in reply:
> As for urllib.py, I see the problem. 303 should still be
> added, though, since that poses no problem at all.
John
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=568068&group_id=5470