Prototyping 2014-01-21 (Networked Media)

From XPUB & Lens-Based wiki

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
 _          _ _       
| |__   ___| | | ___  
| '_ \ / _ \ | |/ _ \ 
| | | |  __/ | | (_) |
|_| |_|\___|_|_|\___/