How to Redirect HTTP Address
Keywords: redirect HTTP translate META HTTP-EQUIV="Refresh"
Question:
Can WebBatch return and http address?I want my WebBatch script to return a page reference (link) instead of html. I suspect the reason I can't answer this myself is that I am new to html & cgi, but in WebBatch you set up your return with a content type statement:
"Content-type: text/html"instead of returning html, I want to return and address, i.e., "http://etc.etc.etc" and have the caller "go there"Many thanks.
Answer:
Ahh. Ok the technical term for this is a "Redirect". You want the server to translate one url for another one.WebOut HTML like this:
<HTML> <HEAD> <TITLE>The Wonderful World of Budu!</TITLE> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.bulldogbeach.com"> </HEAD> <BODY BGCOLOR="#FFFFFF"> <P><A HREF="http://www.bulldogbeach.com">Click here to visit our new home</A></P> </BODY> </HTML>
Article ID: W12480Filename: Redirect HTTP Address.txt