|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Redirecting a web page on server side
Hi, I need some help here please..
I'm using apache as a web server. How can I perform redirection on server side with python? Thank you very much Roy ![]() |
|
#2
|
||||
|
||||
|
If you can avoid sending any other MIME headers, Content-Type for instance all you have to do is print this...
Code:
#!/usr/bin/env python print 'Location: http://www.python.org\n' This will redirect the page to python.org using Python CGI .Mark. |
|
#3
|
|||
|
|||
|
A bit of a problem...
Quote:
Hi Mark. Thanks for your reply. The situation is, that I have a login page that authenticates the user, if the user is authenticated then : 1. An header with cookie ( sessionID ) is sent to the client 2. A redirect for a different page is required. How can I achieve that ? Cheers Roy |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Redirecting a web page on server side |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|