FAQ: Patch for HTTP/1.1 in httplib... 
Author Message
 FAQ: Patch for HTTP/1.1 in httplib...

-----BEGIN PGP SIGNED MESSAGE-----

    Oliver> But cause more and more sites switch to apache 1.2, I need HTTP/1.1 support.
    Oliver> Has anybody modified httplib to support it? If not, I like to volunteer to do
    Oliver> the appropriate patches.

I hereby dub this a frequently asked question. <0.0 wink>...

Something more robust will probably done for some future python version, but
this will get you over the hump for now.

~/src% diff Python/Lib/httplib.py Python-1.4/Lib/httplib.py
41c41
< replypat = regsub.gsub('\\.', '\\\\.', HTTP_VERSION) + \
- - ---

Quote:
> replypat = regsub.gsub('\\.', '\\\\.', 'HTTP/1.[0-9]+') + \

- --
Skip Montanaro     | Musi-Cal: http://www.*-*-*.com/

(518)372-5583      | Python: http://www.*-*-*.com/

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQCVAwUBMywg9R+q0G630cGhAQEBsQQAr36y4jdrZzr+iZcLC81QH+chbAFPnXhR
fqhTDruqPq1q/mtF3hUpeLvy5pDyrJ06HZmI5sys8Zs18uUv5P0slGGk+oFox9Q9
QOJayq4xiYMK/2qkOXwLjFaPbnMRH+2x3tbGA17tlx3cX5bFX8rMaooj3CEqCzHv
WQFTQmBmCO0=
=LIYk
-----END PGP SIGNATURE-----



Thu, 02 Sep 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. httplib supporting HTTP/1.1 [Q]

2. httplib.py fixed for HTTP/1.1?

3. bug in httplib for HTTP/1.1 responses

4. HTTP 1.1 support in BaseHTTPServer [patch 430706]

5. urllib HTTP/1.1 patch

6. HTTP 1.0 and HTTP 1.1 packages

7. httplib 1.1

8. PATCHES: Patch Archive Updated http://www.cs.uoregon.edu/research/tcl/patch/

9. HTTP/1.1 server in Python

10. HTTP 1.1 anyone?

11. HTTP/1.1 module

12. HTTP/1.1 support in 1.5?

 

 
Powered by phpBB® Forum Software