Baffled by httplib and SSL!

Jason Orendorff jason at jorendorff.com
Wed Dec 5 18:51:58 EST 2001


Dieter Maurer <dieter at handshake.de> wrote:
> As of HTTP 1.1, the request locator should contain the full
> URI, including the host part and (I think) the protocol part.

Not exactly.  A careful reading of section 5.1.2 of RFC 2616
(http://rfc.net/rfc2616.html) reveals that an HTTP/1.1 client MUST
send only the path, and not the whole URI, on the Request-Line,
unless the request is being made of a proxy.  Therefore this
request is in error:
  POST https://www.dotster.com/account/login/login.asp HTTP/1.1

However, the spec also says that HTTP/1.1 servers MUST correctly
handle both cases!  So it seems likely that this isn't the
problem after all.

-- 
Still-baffled-ly y'rs,
Jason Orendorff
http://www.jorendorff.com/





More information about the Python-list mailing list