Making HTTP requests from a container that has no curl, using bash /dev/tcp
Summary
This article explains how to make an HTTP request from a minimal container that does not include curl or wget. It shows how Bash can open a raw TCP socket through /dev/tcp and send a handcrafted HTTP request to another service on a Docker network. It also covers practical caveats such as using Connection: close, the lack of TLS support, and the fact that this is a debugging workaround rather than a full HTTP client. The piece is useful for developers working in stripped-down container environments who need a quick connectivity check without installing extra tools.
Classifications
industries
EduTech - institutions
applications
Anti Piracy
AskAI Classifications
Labels
No AI classifications detected