Last active
March 9, 2019 10:22
-
-
Save simonewebdesign/bef1bcad8020750b509e to your computer and use it in GitHub Desktop.
telnet to localhost example, also wget and curl examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://localhost:8080/ >> index.html # append the contents to index.html file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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