Using telnet to Simulate a HTTP Client: Difference between revisions
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
... | ... | ||
Connection closed by foreign host. | Connection closed by foreign host. | ||
</pre> | |||
=Notes= | |||
If we use httpd as a proxy, it'll close the connection immediately if we are not using: | |||
<pre> | |||
Connection: Keep-Alive | |||
Keep-Alive: timeout=3600 | |||
</pre> | </pre> |
Revision as of 23:10, 8 January 2017
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.
Notes
If we use httpd as a proxy, it'll close the connection immediately if we are not using:
Connection: Keep-Alive Keep-Alive: timeout=3600