DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Making HTTP requests from a container with no curl using bash /dev/tcp

Quality: 8/10 Relevance: 9/10

Summary

This article demonstrates how to perform an HTTP GET from a minimal container without curl by using Bash's /dev/tcp redirection. It provides a small, runnable pattern to open a socket, craft a raw HTTP request, and read the response, plus notes on DNS, TLS limitations, and portability. It also discusses when curl is still preferable for routine tasks.

🚀 Service construit par Johan Denoyer