![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programming Guru
![]() |
Getting the referring URL
I don't want to have any javascript in the page or anything, I want it to be all PyCherry doing this.
I'm thinking there's something in pycherry.request to get the referring url. I need it so I can know which page to send them back to. Thanks in advance. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Off the top of my head, I believe that the referer is specified in a header, so
cherrypy.request.headers['Referer'] |
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
cherrypy.request.headerMap['Referer'] lol. Thanks though, it helps to know where to look. =] |
|
|
|
|
|
#4 |
|
Expert Programmer
|
And its not always correct.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() |
I also found an excellent snippet for figuring out if the paramaters were GET or POST data. I can make good use of that. *thumbs up*
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|