Skip to content

Instantly share code, notes, and snippets.

@simonewebdesign
Last active March 9, 2019 10:22
Show Gist options
  • Save simonewebdesign/bef1bcad8020750b509e to your computer and use it in GitHub Desktop.
Save simonewebdesign/bef1bcad8020750b509e to your computer and use it in GitHub Desktop.
telnet to localhost example, also wget and curl examples
curl http://localhost:8080/ >> index.html # append the contents to index.html file
$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1
Host: localhost
HTTP/1.1 200 OK
...
wget localhost:8080
--2015-07-10 14:44:17-- http://localhost:8080/
Resolving localhost... 127.0.0.1, ::1, fe80::1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 966 [text/html]
Saving to: 'index.html'
index.html 100%[=====================>] 966 --.-KB/s in 0s
2015-07-10 14:44:17 (70.9 MB/s) - 'index.html' saved [966/966]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment