how could it be that this controller returns two different values for url1 and url2 if I visit the page through https? Is it correct? I was lookig a way to distinguish in my app the protocoll used for browsing.

def test():
    url1 = URL(host=True, scheme=True) # -> http://...
    url2 = request.env.http_referer           # -> https://...
    return locals()

thanks a lot

    Manuele

Reply via email to