Yea I understand the point you're making. After testing it out for a
few hours I saw that in some cases the value for http_referer was
"None". I wondered if it was a quirk of some browsers. When I was
testing it I was using firefox. What's the alternative to using
http_referer, if there is one?

On Apr 21, 3:53 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Mind that in using http_referrer you are trusting that the browser is
> putting it there.
>
> On 21 Apr, 09:27, TeamBlack <teamblac...@googlemail.com> wrote:
>
> > Ah, yes, I understand now. It wasn't clear to me at first from looking
> > at the example. I've got it working now, thank you for your help
> > Yarko.
>
> > TeamBlack
>
> > On Apr 20, 11:31 pm, Yarko Tymciurak <yark...@gmail.com> wrote:
>
> > > 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 
> > > <teamblac...@googlemail.com>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 <teamblac...@googlemail.com> wrote:
> > > > > Thanks Yarko,
>
> > > > > I'll take a look. Appreciate the swift response :o)
>
> > > > > On Apr 20, 7:39 pm, Yarko Tymciurak <yark...@gmail.com> wrote:
>
> > > > > > On Mon, Apr 20, 2009 at 1:09 PM, TeamBlack 
> > > > > > <teamblac...@googlemail.com
> > > > >wrote:
>
> > > > > > > Hi,
>
> > > > > > > I did search but didn't find what I was looking for. Using web2py
> > > > > > > 1.56, is it possible to find out thereferringurlwhen 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" thaturl(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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to