Applescript CGI RedirectsRather than generating a complete HTTP response de novo, it might be simpler to send your visitor to a pre-existing page, perhaps a confirmation of a form submission, or a standard error page. This is easy, once you know how.
Basic redirect example
You would of course want to wrap your own logic around it, including form processing, error handling, possibly a different redirect depending on input.
You can copy the above code from this text field
The following are all valid assignments for redirPage:
Naturally, redirPage can be set inside your handler logic, and can be dynamically generated. It can even be extracted from your form_post data.
One of the interesting and powerful capabilities redirects allow is to build a URL with a search string in the GET format:
Well, that's all there is to redirects (that I know of and use, anyway). If you have found this page to be helpful, please send me an email to encourage me to continue this teaching series.
© 1997-2019 Jeffrey W Baumann dba LinkedResources. All Rights Reserved. Last Updated April 6, 2019.