Last active
April 12, 2020 13:53
-
-
Save michalbcz/334d7c6585850752d3640c4ef407fc22 to your computer and use it in GitHub Desktop.
bash get url resource (witgout wget or curl or something else)
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
{ echo -e "GET / HTTP/1.0\r\nHost: ftp.gnu.org\r\n\r" >&3; cat <&3 ; } 3<> /dev/tcp/ftp.gnu.org/80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
found @ https://news.ycombinator.com/item?id=22846814