HTTPLIB - Problem retrieving a page

Colin Meeks colinmeeks at rogers.com
Mon Nov 26 09:14:23 EST 2001


Hi Oleg

>    I tested the site a bit and found that it responds Error404 to HTTP/0.9
> requests (I tested it with netcat). HTTP/1.0 and HTTP/1.1 requests are ok.
>    So the reason is (or at least may be) that your version of Python
library
> does not send HTTP version with request. Try to verify this (that is, look
> into headers that httplib sends; use debugging proxy or fake http server
> for testing - there are a number of pure python tools for this task).
I tested this on my own box using Apache and in the logs it says the
requests are in fact HTTP/1.1,however when I turn HTTPLIB debugging
on it says the GET is HTTP/1.0.  Here is the debug info:

connect: (www.meeks.ca, 80)
send: 'GET /index.htm HTTP/1.0\r\n'
send: 'Accept: text/html\r\n'
send: 'Accept: text/plain\r\n'
send: '\r\n'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Date: Mon, 26 Nov 2001 14:10:50 GMT
header: Server: Apache/1.3.20 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.4
OpenSSL/0.9.6b
header: Connection: close
header: Content-Type: text/html; charset=iso-8859-1

Any firther ideas of what to try??  I'm using ActiveState Python 2.1.212

Regards

Colin


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.286 / Virus Database: 152 - Release Date: 09/10/2001





More information about the Python-list mailing list