home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-08-13 | 974 b | 29 lines | [TEXT/ToyS] |
- set LF to ASCII character (10)
- set CR to return
- set CRLF to CR & LF
- set http_10_header to "HTTP/1.0 200 OK" & CRLF & ¬
- "Server: MacHTTP" & CRLF & ¬
- "MIME-Version: 1.0" & CRLF & ¬
- "Content-type: text/html" & CRLF & CRLF
-
- return http_10_header & ¬
- "<html>" & ¬
- "<head>" & ¬
- "<title>Hello, World</title>" & ¬
- "</head>" & ¬
- "<body>Hello, World!</body" & ¬
- "</html>"
-
- (* return feedback & "http_search_args:" & http_search_args & return & ¬
- "<br>path_args: " & path_args & return & ¬
- "<br>post_args: " & post_args & return & ¬
- "<br>method: " & method & return & ¬
- "<br>client_address: " & client_address & return & ¬
- "<br>username: " & username & return & ¬
- "<br>password: " & password & return & ¬
- "<br>from_user: " & from_user & return & ¬
- "<br>server_name: " & server_name & return & ¬
- "<br>server_port: " & server_port & return & ¬
- "<br>content_type: " & content_type & return & ¬
- "<br>referer: " & referer & return & ¬
- "<br>user_agent: " & user_agent *)