REDIRECT

Tino Wildenhain tino at wildenhain.de
Wed Mar 18 13:21:00 CET 2009


gaeasiankom at gmail.com wrote:
> Hi !
> 
> I'm new to Python. I'm having some difficulties to redirect the pages
> using python. Every time when I redirect, the URL changed accordingly.
> 
> (Example : from   http://localhost:9999   to  http://localhost/hello.py?name='J')
> 
> What's the Python way of implementing this ? Can anyone help me out on
> this ?

What did you try so far? Hint: the redirect is done via Location: 
HTTP-Header. You can check all details in rfc2616, this is independend
from the language you would use. Everything else depends on the 
framework you use.

Regards
Tino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3241 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20090318/0ed0c4d3/attachment.bin>


More information about the Python-list mailing list