On 5/16/07, The Alchemist <[EMAIL PROTECTED]> wrote:
>
> I need to get the source that linked the user to my website.  I need
> to by-pass the server (e.g. Apache) so that I get the original
> source.  Is there any way I can do this using CherryPy?  (e.g.
> cherrypy.response.headers etc?)
>

You don't need to bypass Apache:

cherrypy.request.headers.get('Referer', None)

This will get the referer's url or, if someone accessed your site
directly, will return None.

Lee

-- 
Lee McFadden

blog: http://www.splee.co.uk
work: http://fireflisystems.com
skype: fireflisystems

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to