[Python-bugs-list] [ python-Bugs-547093 ] urllib/httplib vs corrupted tcp/ip stack
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 28 Apr 2002 17:47:34 -0700
Bugs item #547093, was opened at 2002-04-22 10:03
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=547093&group_id=5470
>Category: Python Library
Group: None
Status: Open
Resolution: None
>Priority: 3
Submitted By: Asle Pedersen (apederse)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib/httplib vs corrupted tcp/ip stack
Initial Comment:
I am trying to connect to a server (talouselama.fi)
using urllib2. The server respond immediately after it
has received the first package from the client
(urllib2). Since httplib fragment http requests in a
request package and subsequent header packages the
server disregards any header information that is sendt
using urllib2. I have used ethereal to trace the
packages for the connection. I can provide a dump if
necessary.
This problem may well be due to a corruptet tcp/ip
stack at the server (talouselama.fi) but shouldn't
urllib handle this if any other browser does. (lynx,
explorer, opera - no exception)??
/Asle
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-04-28 20:47
Message:
Logged In: YES
user_id=6380
Can you explain what you think httplib is doing wrong? Are
you saying that it should buffer the whole request until it
is ready to send it in a single send() request? If so, I
don't think it is httplib's responsibility to fix this --
the server doesn't follow the HTTP protocol (which says
nothing about keeping things together in a single packet),
and its webmaster should be informed of the bug in his site.
Other browsers probably happen to send the whole request in
a single packet.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=547093&group_id=5470