Re: HttpResponseRedirect(request.META["HTTP_REFERER"])

2009-09-24 Thread Tim Chase
dijxtra wrote: > Is it safe to use HttpResponseRedirect(request.META["HTTP_REFERER"])? > Can a session be stolen using this coed by spoofing HTTP_REFERER? Two things stand out to me: 1) HTTP_REFERER is not a required header, so if the browser doesn't send it, your code won

HttpResponseRedirect(request.META["HTTP_REFERER"])

2009-09-24 Thread dijxtra
Is it safe to use HttpResponseRedirect(request.META["HTTP_REFERER"])? Can a session be stolen using this coed by spoofing HTTP_REFERER? Thanks in advance, nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: HTTP_REFERER

2007-02-19 Thread Benedict Verheyen
Pythoni schreef: > I would like to use HTTP_REFERER in my Django project to find out from > where users came to my website. So, my first page is INDEX.HTML that > uses > def Index(request) procedure. > In this def Index(request) I use > request.META['REMOTE_ADDR'] &g

Re: HTTP_REFERER

2007-02-17 Thread [EMAIL PROTECTED]
Pythoni napisał(a): > I would like to use HTTP_REFERER in my Django project to find out from > where users came to my website. So, my first page is INDEX.HTML that > uses > def Index(request) procedure. > In this def Index(request) I use > request.META['REMOTE_ADDR&#

HTTP_REFERER

2007-02-17 Thread Pythoni
I would like to use HTTP_REFERER in my Django project to find out from where users came to my website. So, my first page is INDEX.HTML that uses def Index(request) procedure. In this def Index(request) I use request.META['REMOTE_ADDR'] but I found out that Referer does not work. HTTP_R

Re: HTTP_REFERER isn't set using Explorer

2007-01-04 Thread Benedict Verheyen
ringemup schreef: Julio's hit it on the nose. Not ot mention that Firefox actually has a hidden setting for that too, and some proxies (including AOL's) also block referrers. You might be best off explicitly passing the URL of the current page as a parameter. I still find it strange that o

Re: HTTP_REFERER isn't set using Explorer

2007-01-04 Thread ringemup
Julio's hit it on the nose. Not ot mention that Firefox actually has a hidden setting for that too, and some proxies (including AOL's) also block referrers. You might be best off explicitly passing the URL of the current page as a parameter. --~--~-~--~~~---~--~---

Re: HTTP_REFERER isn't set using Explorer

2007-01-04 Thread Julio Nobrega
On 1/4/07, Benedict Verheyen <[EMAIL PROTECTED]> wrote: Hi, This is what goes wrong in explorer: the HTTP_REFERER isn't set. With Firefox, the HTTP_REFERER is set. Any idea how i can solve this? I had this problem with a client that was running Norton and somewhere in

HTTP_REFERER isn't set using Explorer

2007-01-04 Thread Benedict Verheyen
Explorer doesn't work. In the edit view i have a system where i keep track of the referrer so i can redirect the user back to the correct page: page = request.META["HTTP_REFERER"] history[1] = history[0] history[0] = page This is what goes wrong in explorer: the HTTP_RE

Re: HTTP_REFERER

2005-11-07 Thread PythonistL
Thank you Andreas and Luke for help and explanation Regards, L.

Re: HTTP_REFERER

2005-11-05 Thread Luke Plant
is point, you haven't yet set Referrer1, so it will throw an exception. I've tested it and request.META['HTTP_REFERER'] always does have the referer as it ought, but if there is no referer header it will throw a KeyError, so you need to do something like this: referer = reques

Re: HTTP_REFERER

2005-11-05 Thread Andreas Stuhlmüller
PythonistL wrote: > Can anybody explain WHY the value from GET part > (command on line 15 such as > Refferer1= request.META['HTTP_REFERER'] > ) is not saved to POST? request.POST contains only the variables POSTed by the user. You'll have to make sure that the refer

HTTP_REFERER

2005-11-05 Thread PythonistL
d.") else:#first GET the LoginForm Refferer1= request.META['HTTP_REFERER'] print "Refferer1 from GET",Refferer1 manipulator = users.AddManipulator() errors = new_data = {} form = formfields.FormWrapper(manipulator, ne