TIL: You can make HTTP requests without curl using Bash /dev/TCP

·Hacker News··

Minimal container images often ship without curl, wget, or any HTTP client at all. Bash can open a TCP socket through /dev/tcp, which is enough to write a tiny HTTP/1.1 request by hand for quick checks.

Read full article →

Related Articles

Apple is about to make Hide My Email useless
SXX · Hacker News · 14h ago
A backdoor in a LinkedIn job offer
lwhsiao · Hacker News · 1d ago
Mechanical Watch (2022)
razin · Hacker News · 21h ago
Google Chrome's Next Update Will Mark the End of Popular Ad Blockers
arnejenssen · Hacker News · 17h ago
Correlated randomness in Slay the Spire 2
rdmuser · Hacker News · 23h ago