home *** CD-ROM | disk | FTP | other *** search
/ The Mac 1996 October / The Mac (October 1996).dmg / Utilities / Tricks / Teaching / scripts / return-variables.script < prev    next >
Encoding:
Text File  |  1995-08-13  |  974 b   |  29 lines  |  [TEXT/ToyS]

  1. set LF to ASCII character (10)
  2. set CR to return
  3. set CRLF to CR & LF
  4. set http_10_header to "HTTP/1.0 200 OK" & CRLF & ¬
  5.     "Server: MacHTTP" & CRLF & ¬
  6.     "MIME-Version: 1.0" & CRLF & ¬
  7.     "Content-type: text/html" & CRLF & CRLF
  8.  
  9. return http_10_header & ¬
  10.     "<html>" & ¬
  11.     "<head>" & ¬
  12.     "<title>Hello, World</title>" & ¬
  13.     "</head>" & ¬
  14.     "<body>Hello, World!</body" & ¬
  15.     "</html>"
  16.  
  17. (* return feedback & "http_search_args:" & http_search_args & return & ¬
  18.     "<br>path_args: " & path_args & return & ¬
  19.     "<br>post_args: " & post_args & return & ¬
  20.     "<br>method: " & method & return & ¬
  21.     "<br>client_address: " & client_address & return & ¬
  22.     "<br>username: " & username & return & ¬
  23.     "<br>password: " & password & return & ¬
  24.     "<br>from_user: " & from_user & return & ¬
  25.     "<br>server_name: " & server_name & return & ¬
  26.     "<br>server_port: " & server_port & return & ¬
  27.     "<br>content_type: " & content_type & return & ¬
  28.     "<br>referer: " & referer & return & ¬
  29.     "<br>user_agent: " & user_agent *)