sorry - I was "too swift" in typing (but you can see it in the link):
You want request.env.http_referrer On Mon, Apr 20, 2009 at 2:46 PM, TeamBlack <[email protected]>wrote: > > HI Again, > > OK, I found request.http_referer, but I don't think understand how to > use it. I thought I could use it in a similar way to request.client, > but I did a simple test to output whatever data is in > request.http_referer, but I got nothing back. > > Could you possibly give me a basic example of how I would use it? > > Thanks > > On Apr 20, 8:04 pm, TeamBlack <[email protected]> wrote: > > Thanks Yarko, > > > > I'll take a look. Appreciate the swift response :o) > > > > On Apr 20, 7:39 pm, Yarko Tymciurak <[email protected]> wrote: > > > > > On Mon, Apr 20, 2009 at 1:09 PM, TeamBlack <[email protected] > >wrote: > > > > > > Hi, > > > > > > I did search but didn't find what I was looking for. Using web2py > > > > 1.56, is it possible to find out the referring url when someone > visits > > > > your web2py site? Just to put it in plain terms, an example would be > > > > if someone visited my site by clicking on a link on some myspace, > > > > would I be able to "grab" that url (e.g. "http://www.myspace.com/ > > > > somemyspaceuserspage") so that it can be stored and viewed later? The > > > > purpose of this would simply be for some basic reporting and stats. I > > > > know there are pieces of software one can obtain, but I'm interested > > > > to know if it can be done without having to introduce foreign code > > > > into my apps. > > > > > > Any help would be greatly appreciated. > > > > > Have a look athttp:// > www.web2py.com/examples/default/examplessepcificallyhttp://www... > > > > > you'll see request.http_referer > > > > > > Thanks! > > > > > > TeamBlack > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

