summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-03-16 18:34:00 (GMT)
committerGuido van Rossum <guido@python.org>1997-03-16 18:34:00 (GMT)
commit4a908be231e50eb319f2763394b8a5f4cf7730e8 (patch)
treeaf1cf2045bdd0a04f136fc979c435397e0a3f0cc /Misc
parentf2e499b1d760076f519b618105c112495d6f7911 (diff)
downloadcpython-4a908be231e50eb319f2763394b8a5f4cf7730e8.zip
cpython-4a908be231e50eb319f2763394b8a5f4cf7730e8.tar.gz
cpython-4a908be231e50eb319f2763394b8a5f4cf7730e8.tar.bz2
Added Q. about HTTP/1.1.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/FAQ11
1 files changed, 11 insertions, 0 deletions
diff --git a/Misc/FAQ b/Misc/FAQ
index 7a94fda..c18f45b 100644
--- a/Misc/FAQ
+++ b/Misc/FAQ
@@ -180,6 +180,7 @@ Here's an overview of the questions per chapter:
automatically saved to and restored from disk.)
4.40. Q. I try to use __spam and I get an error about _SomeClassName__spam.
4.41. Q. How do I delete a file? And other file questions.
+ 4.42. Q. How to modify urllib or httplib to support HTTP/1.1?
5. Extending Python
5.1. Q. Can I create my own functions in C?
@@ -1690,6 +1691,16 @@ f.truncate(offset); offset defaults to the current seek position.
There's also os.ftruncate(fd, offset) for files opened with os.open()
-- for advanced Unix hacks only.
+4.42. Q. How to modify urllib or httplib to support HTTP/1.1?
+
+A. Apply the following patch to httplib.py:
+
+41c41
+< replypat = regsub.gsub('\\.', '\\\\.', HTTP_VERSION) + \
+---
+> replypat = regsub.gsub('\\.', '\\\\.', 'HTTP/1.[0-9]+') + \
+
+
5. Extending Python
===================