Ioseph Kim
ioseph at paolo.net
Sat Jan 27 06:40:03 EST 2001
Apache : 1.3.14 Python : 2.0 mod_python : 2.7.1 I maked a simple script a.py print 'Location: /\n' ------- but, this script did not work. -.- > telnet localhost 80 Trying 127.0.0.1... Connected to localhost.paolo.net. Escape character is '^]'. GET /~ioseph/python/a.py HTTP/1.0 HTTP/1.1 200 OK Date: Fri, 26 Jan 2001 21:36:07 GMT Server: Apache/1.3.14 (Unix) mod_python/2.7.1 Python/2.0 Location: / Connection: close Content-Type: text/plain Connection closed by foreign host. -------- in this case, HTTP Status code is 200. to url redirect, web server might to return http status code 302. How I can use "Location:" header in cgihandler?
|