Re: applescript CGI - URL Redirection
Re: applescript CGI - URL Redirection
- Subject: Re: applescript CGI - URL Redirection
- From: JJ <email@hidden>
- Date: Tue, 26 Mar 2002 18:11:53 +0100
>
Funny you should ask.
>
>
http://www.linkedresources.com/teach/applescript/CGIredirects.shtml
>
>
It's a work in progress, and not yet linked from the rest of my site. Hope it
>
helps.
>
>
Jeff Baumann
>
email@hidden
>
www.linkedresources.com
That's the stuff... I'll check it!
>
Message: 7
>
Date: Mon, 25 Mar 2002 21:38:27 -0500
>
From: email@hidden
>
Subject: Re: applescript CGI - URL Redirection (JJ)
>
To: email@hidden
>
>
You want to respond with a Status Code 301 "Moved Permanently"' in your HTTP
>
header. The full page you generate might look like this
>
>
HTTP/1.1 301 Moved Permanently
>
Date: Sat, 23 Mar 2002 21:32:17 GMT
>
Location: http://www.foo.com/must/be/absolute/url
>
Connection: close
>
Content-type: text/html
>
>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>
"http://www.w3.org/TR/html4/strict.dtd">
>
<html>
>
<head><title>301 Moved Permanently</title>
>
</head><body>
>
<h1>Moved Permanently</h1>
>
The document has moved
>
<a href="http://www.foo.com/must/be/absolute/url">here</a>.
>
</body></html>
>
>
Including the body and a link will allow for browsers that don't understand
>
the
>
301--the user can click on the link to relocate.
>
--
>
Scott Norton
So, it's suppossed that HTTP's header 301 will redirect automatically to the
user (and must be an absolute URL). I'll check this, too.
Thanks!
JJ
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.