summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-04-24 15:32:12 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-04-24 15:32:12 (GMT)
commit024aaa1bfe27cbc47c2a7f88c21c9bb1b6605191 (patch)
tree4281503f96d6e650cd0338bfbbf58c5479f9dc51 /Lib/urllib.py
parent1d5854fdc49073a3e49799192bc762ae0a68b64f (diff)
downloadcpython-024aaa1bfe27cbc47c2a7f88c21c9bb1b6605191.zip
cpython-024aaa1bfe27cbc47c2a7f88c21c9bb1b6605191.tar.gz
cpython-024aaa1bfe27cbc47c2a7f88c21c9bb1b6605191.tar.bz2
SF Patch 549151: urllib2 POSTs on redirect
(contributed by John J Lee)
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index bd8347e..42851ee 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -586,6 +586,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: