Prototyping 2014-01-21 (Networked Media)

From XPUB & Lens-Based wiki

Telnet

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