python cgi redirect?

how do i send a redirect to the browser from a cgi script?
wrynnAsked:
Who is Participating?
 
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
All Courses

From novice to tech pro — start learning today.