Baffled by httplib and SSL!

Dieter Maurer dieter at handshake.de
Wed Dec 5 17:14:56 EST 2001


"Steve Holden" <sholden at holdenweb.com> writes on Mon, 3 Dec 2001 22:09:37 -0500:
>  > ...
> > send: 'POST https://www.dotster.com/account/login/login.asp HTTP/1.1\r\n'
> > send: 'Host: www.dotster.com:443\r\n'
> > ....
> Since I am not yet using this library I will limit my observation to the
> fact that the scheme (https:) and the host (//www.dotster.com) are normally
> implied by a) the connection port (443 by default) and b) the connected
> host. I would therefore have expected the first line to be
> 
> send: 'POST /account/login/login.asp HTTP/1.1\r\n'
> 
> but I don't know if this is what's causing your problem.
As of HTTP 1.1, the request locator should contain the full
URI, including the host part and (I think) the protocol part.

Dieter



More information about the Python-list mailing list