Re: httplib continuation packets

2006-11-13 Thread Haakon Riiser
[Steve Holden] > It really does seem quite bizarre that a server should respond > differently to the same TCP request when it is split differently into IP > datagrams. > > There really is nothing wrong (from a standards point of view) with > sending FIN with your last data segment. FIN means "I

Re: httplib continuation packets

2006-11-11 Thread Haakon Riiser
[Fredrik Lundh] > Haakon Riiser wrote: > >> Yes, and it doesn't help. > > then the server is mostly likely broken beyond repair. It's not in my power to upgrade the server, unfortunately. Guess I'll have to use Perl. > to see if this really is the probl

Re: httplib continuation packets

2006-11-11 Thread Haakon Riiser
[Fredrik Lundh] > Haakon Riiser wrote: > >> Is this a bug in httplib or the web server? > > it could be that they're blocking requests from Python's urllib, of > course. have you tried overriding the user-agent string ? Yes, and it doesn't help. By the

httplib continuation packets

2006-11-11 Thread Haakon Riiser
After a long debugging session while scripting my webmail, I believe I have traced the problem to the way httplib sends POST requests. I have compared tcpdump listings from Python 2.4.3 and 2.5.0's httplib (via urllib/urllib2), Perl's LWP::UserAgent 2.033 and Firefox 2.0. Only Python sends the re