httplib.py fixed for HTTP/1.1? 
Author Message
 httplib.py fixed for HTTP/1.1?

Did anyone submit a patch yet so that httplib.py does not complain when talking
to a web server which responds with a "HTTP/1.1 200 OK" message? (as opposed to
HTTP/1.0).

Thanks,

Marko

.Marko Balabanovic.......Department of Computer Science....................

.Gates Building 1A       Phone: 415 725 8783            Fax: 415 725 1449 .
.Stanford CA 94305-9010  Url:   http://www.*-*-*.com/
.USA.......................................................................



Fri, 08 Oct 1999 03:00:00 GMT  
 httplib.py fixed for HTTP/1.1?

Quote:
> Did anyone submit a patch yet so that httplib.py does not complain
> when talking to a web server which responds with a "HTTP/1.1 200 OK"
> message? (as opposed to HTTP/1.0).

Sure, and easy to find via http://www.python.org/locator
Here's one (from Skip Montanaro):

~/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]+') + \

Cheers  /F (http://hem1.passagen.se/eff)


Sat, 09 Oct 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. httplib supporting HTTP/1.1 [Q]

2. FAQ: Patch for HTTP/1.1 in httplib...

3. bug in httplib for HTTP/1.1 responses

4. Patch to fix rfc822.py in Python 1.1 and 1.1.1

5. minor fix to httplib.py

6. HTTP 1.0 and HTTP 1.1 packages

7. httplib 1.1

8. mimedecode.py version 1.1

9. Gnuplot.py 1.1

10. HTTP 1.1 support in BaseHTTPServer [patch 430706]

11. HTTP/1.1 server in Python

12. HTTP 1.1 anyone?

 

 
Powered by phpBB® Forum Software