Need help with httplib

Syver Enstad syver-en+usenet at online.no
Sun Aug 18 13:36:04 CEST 2002


"Carl Waldbieser" <waldbie at attglobal.net> writes:

> I am trying to create a simple web server that forwards GET, HEAD, and
> POST
> 
> requests to a different server and then sends the response back to the
> 
> original client.  I am using the BaseHTTPServer and httplib modules to
> try
> 
> and do this.  I almost have it working correctly except for a problem
> with
> 
> the POST.  The request data is successfully POSTed, but when the
> (real) web
> 
> server responds to my redirecting web server, it sends back a status
> of 100,
> 
> Continue.
> 
> I am no HTTP expert, but I tried digging through some RFCs to try and
> figure
> 
> this one out.  As far as I can tell, the web server is not suposed to
> send
> 
> this status back unless I sent an "Expect" request header of
> "100-continue",
> 
> which the client does not send.
> 
> If anyone can explain to me what is going on here, I'd appreciate
> it.

The RFC states that when doing a post, the server can send a 100
continue reply, without the client "Excpect'ing" it. I think that
SOAPy has a hack around this problem with httplib. Use google to search for 100
continue and httplib and you'll hopefully find it.

-- 

Vennlig hilsen 

Syver Enstad



More information about the Python-list mailing list