[Web-SIG] urlparse method behaviour when handing abs/rel urls

O.R.Senthil Kumaran orsenthil at gmail.com
Sun Jun 29 13:43:03 CEST 2008

* scriptor Robert Brewer, explico 
> There's even a 3rd case: HTTP's Request-URI. For example, '//path' must
> be treated as an abs_path consisting of two path_segments ['', 'path'],
> not a net_loc, since the Request_URI must be one of ("*" | absoluteURI |
> abs_path | authority).
> See
> http://www.cherrypy.org/browser/branches/815-urljoin/cherrypy/wsgiserver
> /__init__.py#L247 for an implementation.

Thanks for passing on this note and the example. 
Gives an idea of changes required in urlparse modules for RFC2396 compliance 

O.R.Senthil Kumaran

More information about the Web-SIG mailing list