Solved

cgi file redirection on NT

Posted on 1997-11-18
3
239 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now