Question about httplib and HTTP response 100 Continue

Steve Holden sholden at holdenweb.com
Mon Apr 15 08:27:23 EDT 2002


"Marco V. Caamaño Castro" <mvcc_cr at yahoo.com> wrote ...
"""
I've been trying to figure out why this code[1] does not work[2] on
connecting with a IIS server, but it works with Apache on Linux. I found
that using curl to post the request works. Digging into the response I
got using curl I found that the server is first sending a HTTP 100
Continue response and then the result of the post:

-----------------------
HTTP/1.1 100 Continue
Server: Microsoft-IIS/4.0
Date: Mon, 15 Apr 2002 00:49:27 GMT

HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Mon, 15 Apr 2002 00:49:27 GMT
Connection: close
Content-Type: x-data/xact-error
-----------------------

but apache just outputs the results right away:

-----------------------
HTTP/1.1 200 OK
Date: Mon, 15 Apr 2002 00:38:17 GMT
Server: Apache/1.3.22 (Unix) Debian/GNU mod_ssl/2.8.5 OpenSSL/0.9.6a
PHP/4.1.0RC2
X-Powered-By: PHP/4.1.0RC2
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
-----------------------

So, does the httplib work when it encounters a 100-Continue response?

I would really apreciate a little help here as I am stuck, I can't
figure out why using the httplib library doesn't work with this server.
"""

Sorry abt the formatting here: OutOfLuck Express just seems to not quote
certain messages, and I don't have time to fight with it. There's a bug
registered in the SourceForge database that speaks to this problem:


http://sourceforge.net/tracker/?group_id=5470&atid=105470&func=detail&aid=22
7361

This also says that a fix has been generated, though maybe not yet
integrated into the distributions.

regards
 Steve







More information about the Python-list mailing list