DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Making HTTP requests from a container that has no curl, using bash /dev/tcp

Quality: 8/10 Relevance: 9/10

Summary

The article demonstrates a Bash-based technique to perform HTTP requests without curl by using /dev/tcp to open a TCP socket, write a raw HTTP request, and read the response. It highlights practical use in minimal containers, but also emphasizes limitations: no TLS, no full HTTP client features, and Bash-specific redirections required. It's a handy quick-connectivity trick for debugging in constrained environments.

🚀 Service construit par Johan Denoyer