From: Raymond Hettinger Date: Fri, 25 Apr 2003 05:36:48 +0000 (+0000) Subject: Backport 1.157 X-Git-Tag: v2.2.3c1~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74e2df6952903750ac3682c2b29fac485e2df090;p=thirdparty%2FPython%2Fcpython.git Backport 1.157 SF Patch 549151: urllib2 POSTs on redirect (contributed by John J Lee) --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 82011ac7b345..874130921468 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -581,6 +581,10 @@ class FancyURLopener(URLopener): """Error 301 -- also relocated (permanently).""" return self.http_error_302(url, fp, errcode, errmsg, headers, data) + def http_error_303(self, url, fp, errcode, errmsg, headers, data=None): + """Error 303 -- also relocated (essentially identical to 302).""" + return self.http_error_302(url, fp, errcode, errmsg, headers, data) + def http_error_401(self, url, fp, errcode, errmsg, headers, data=None): """Error 401 -- authentication required. See this URL for a description of the basic authentication scheme: