Prototyping 2014-01-21 (Networked Media): Difference between revisions
(→Telnet) |
(→Telnet) |
||
Line 6: | Line 6: | ||
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 16: | ||
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 |
Revision as of 18:49, 20 January 2014
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 _ _ _ | |__ ___| | | ___ | '_ \ / _ \ | |/ _ \ | | | | __/ | | (_) | |_| |_|\___|_|_|\___/