Solved

cgi file redirection on NT

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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 …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

706 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

15 Experts available now in Live!

Get 1:1 Help Now