Solved

python cgi redirect?

Posted on 2010-11-12
3
476 Views
Last Modified: 2012-05-10
how do i send a redirect to the browser from a cgi script?
0
Comment
Question by:wrynn
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
mish33 earned 500 total points
ID: 34129579
print "Status: 302 Moved\nLocation: NEW_URL\n\n"
0
 

Author Comment

by:wrynn
ID: 34278787
i have to print that without it being after printing the content type as html right?
0
 
LVL 15

Expert Comment

by:mish33
ID: 34279742
yes, don't print anything else
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to structure a small domotics database 4 71
Using bootstrap with french text 13 92
Python Regex Problem 24 135
Difference between List and Array in Python 5 66
"The time has come," the Walrus said, "To talk of many things: Of sets--and lists--and dictionaries-- Of variable kinks-- And why you see it changing not-- And why so strange are strings." This part describes how variables and references (see …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question