Using telnet to Simulate a HTTP Client

From NovaOrdis Knowledge Base
Revision as of 23:03, 8 January 2017 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

Internal

Overview

telnet localhost 10000
GET /index.html HTTP/1.1
Host: localhost:10000
Connection: close

HTTP/1.1 200 OK
Content-Length: 37
Server: NovaOrdis http-server
Connection: close
...
Connection closed by foreign host.