WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How to

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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 WebBatch!</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.webbatch.com">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<P><A HREF="http://www.webbatch.com">Click here to visit our new home</A></P>
</BODY>
</HTML>

Article ID:   W12480
Filename:   Redirect HTTP Address.txt
File Created: 2017:07:28:13:58:12
Last Updated: 2011:06:07:08:10:43