• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: applescript CGI - URL Redirection (JJ)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript CGI - URL Redirection (JJ)


  • Subject: Re: applescript CGI - URL Redirection (JJ)
  • From: email@hidden
  • Date: Mon, 25 Mar 2002 21:38:27 -0500

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 Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden
_______________________________________________
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.

  • Prev by Date: Re: applescript CGI - URL Redirection
  • Next by Date: Re: Zoom window / fit screen? How to with applescript?
  • Previous by thread: Re: Application Speakable Items vs. Scripts Folder
  • Next by thread: URL Access Scripting: upload directories
  • Index(es):
    • Date
    • Thread