?
Solved

cgi file redirection on NT

Posted on 1997-11-18
3
Medium Priority
?
271 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 200 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

770 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