Prototyping 2014-01-21 (Networked Media): Difference between revisions
(→Telnet) |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Dramatic Reading / Performance == | |||
* [[proposed new tag: IMG]] | * [[proposed new tag: IMG]] | ||
== Telnet == | == Serve.py == | ||
Experiments with [[Serve.py]] | |||
== Basic Browsing with Telnet == | |||
Telnet is a super basic text based network tool. It's possible to use it to do some simple interactions with a web server by doing the HTTP protocol "by hand". | |||
telnet 145.24.143.xxx 8000 | telnet 145.24.143.xxx 8000 | ||
GET /hello.txt | GET /hello.txt | ||
After pressing enter/return twice, the server responds. The server knows that the request is finished when a blank line is sent. | |||
_ _ _ | _ _ _ | ||
| |__ ___| | | ___ | | |__ ___| | | ___ | ||
Line 15: | Line 24: | ||
GET /hello.txt HTTP/1.0 | GET /hello.txt HTTP/1.0 | ||
This time an HTTP version is specified. The response has more information. | |||
HTTP/1.0 200 OK | HTTP/1.0 200 OK |
Latest revision as of 18:51, 20 January 2014
Dramatic Reading / Performance
Serve.py
Experiments with Serve.py
Basic Browsing with Telnet
Telnet is a super basic text based network tool. It's possible to use it to do some simple interactions with a web server by doing the HTTP protocol "by hand".
telnet 145.24.143.xxx 8000 GET /hello.txt
After pressing enter/return twice, the server responds. The server knows that the request is finished when a blank line is sent.
_ _ _ | |__ ___| | | ___ | '_ \ / _ \ | |/ _ \ | | | | __/ | | (_) | |_| |_|\___|_|_|\___/
telnet 145.24.143.xxx 8000 GET /hello.txt HTTP/1.0
This time an HTTP version is specified. The response has more information.
HTTP/1.0 200 OK Server: SimpleHTTP/0.6 Python/2.7.3 Date: Mon, 20 Jan 2014 16:44:02 GMT Content-type: text/plain Content-Length: 138 Last-Modified: Sat, 23 Nov 2013 09:47:57 GMT _ _ _ | |__ ___| | | ___ | '_ \ / _ \ | |/ _ \ | | | | __/ | | (_) | |_| |_|\___|_|_|\___/