[mod_python] parsed_uri

Nick nick at dd.revealed.net
Tue Jun 28 12:26:10 EDT 2005


If that's all you need to check, then there are SSL variables in the 
subprocess_env.  Or, req.unparsed_uri.split(':')[0].

Nick

Ville Silventoinen wrote:
> Hi,
> 
> has anyone used req.parsed_uri fields successfully?
> 
>   def handler(req):
>       req.content_type = "text/plain"
>       for field in req.parsed_uri:
>           req.write("%s," % str(field))
>       return apache.OK
> 
> shows following:
> 
>   None,None,None,None,None,None,/cgi-bin/vsi/auth/login.py,None,None,
> 
> Is there any other way to determine scheme, host and port?
> Or to get the original URL? I need to check that scheme is 'https'...
> 
> Thanks,
> Ville
> 
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list