All Things WinBatch > WebBatch
Redirect
JTaylor:
Hopefully I haven't overlooked anything and not sure if I have requested this feature before but looking for a direct way to redirect from a ".web" file to a new address like PERL does with
print $query->redirect($url);
I know of at least one way to get there but a bit clunky. Having a WebBatch function would be GREATLY appreciated.
Thanks.
Jim
td:
Ever tried to WebOut a 303 header?
HTTP/1.1 303 See Other
Location: http://whatever.org/index.html
JTaylor:
No. I generally use this method. Any advantage with the 303? Any chance of a WebOutRedirect() function?
Jim
--- Code: HTML5 ---<head>
<meta http-equiv="Refresh" content="0;url=https://www.w3schools.com">
</head>
td:
A 301 or 303 is handled at the http protocol level which means it should require less overhead and be more efficient than an html header. I would be very surprised if your PERL "redirect" did anything more than issue a http 301 header.
JTaylor:
Okay. Thanks. If you get bored and are looking for something to do, having something like that as a function would be nice though :)
Thanks again.
Jim
Navigation
[0] Message Index
[#] Next page
Go to full version