Solved

cgi file redirection on NT

Posted on 1997-11-18
3
245 Views
Last Modified: 2013-12-25
I am trying to redirect the server to fetch a page using
"Location: URL" on a NT 4.0 machine. But this doesnt seem to work. Does the "Location: URL" header not work on Windows NT. If not, what are my other options?

I have just one line of code in the server side file.
It is
print "Location: cgi-bin/test.html\n\n";

The browser (navigator) returns complaining "document contains no data"
0
Comment
Question by:halbhavi
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1831284
Location: URL


Shouldn't care about your operating system (although it could care about your browser or server, or other lines you may be printing with it)
What exactly are you printing?
0
 

Author Comment

by:halbhavi
ID: 1831285
Edited text of question
0
 

Accepted Solution

by:
manchung earned 100 total points
ID: 1831286
Instead of printing a relative path,
you should print the entire path leading to your
html document. Here is an example:

print "Location: http://www.mit.edu/~user/cgi-bin/test.html\n\n";

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Python 2.7 - French characters 6 76
Facebook React and SyntheticEvents 6 64
Configure Robocopy to excluding folders 6 56
ROBOFTP UNZIP 1 39
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
The viewer will learn how to count occurrences of each item in an array.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

774 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