That will construct a URL including the current host and the current scheme (i.e., http or https).
More generally, the current host can be found in request.env.http_host, and the current scheme in request.env.wsgi_url_scheme (request.is_https also indicates whether the scheme is https or not). See http://web2py.com/examples/simple_examples/status for more details about the request and response objects.
Anthony
Jon Molesa
unread,
May 19, 2012, 2:31:18 PM5/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message