python cgi redirect?

how do i send a redirect to the browser from a cgi script?
wrynnAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
mish33Connect With a Mentor Commented:
print "Status: 302 Moved\nLocation: NEW_URL\n\n"
0
 
wrynnAuthor Commented:
i have to print that without it being after printing the content type as html right?
0
 
mish33Commented:
yes, don't print anything else
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.