3 ms·
I think I previously had all the pieces required to do this, but only just figured out that it worked: Glenn-Willens-MacBook-Pro:~ gwillen$ exec 3<> /dev/tcp
by gwillen 14y ago
I think I previously had all the pieces required to do this, but only just figured out that it worked:
Glenn-Willens-MacBook-Pro:~ gwillen$ exec 3<> /dev/tcp/<website>/80
Glenn-Willens-MacBook-Pro:~ gwillen$ echo "GET / HTTP/1.0" >&3
Glenn-Willens-MacBook-Pro:~ gwillen$ echo "" >&3
Glenn-Willens-MacBook-Pro:~ gwillen$ cat <& 3
HTTP/1.1 200 OK
Date: Mon, 10 Sep 2012 21:43:33 GMT
Server: Apache
Last-Modified: Sun, 06 Sep 2009 18:44:42 GMT
ETag: "30525-0-472ed20537a80"
Accept-Ranges: bytes
Content-Length: 0
Connection: close
Content-Type: text/html
Glenn-Willens-MacBook-Pro:~ gwillen$