`curl: (52) Empty reply from server`
IntermediateTroubleshootingConnectivity: refused, timed out, no route
Answer
Likely causes → TCP connected but the server closed without sending any HTTP response: speaking HTTP to a TLS port, app crashed on the request, or a proxy dropped it.
Diagnose →
curl -v http://host:443/ # plain HTTP to a TLS port often gives this
curl -vk https://host:443/
journalctl -u myapp -n 50
Fix → Use the right scheme for the port, or fix the crashing handler.
Prevent → Separate ports cleanly (80 plain, 443 TLS) and log request start in the app.
More on Connectivity: refused, timed out, no route
`curl: (7) Failed to connect to 10.0.2.15 port 8080: Connection refused`Beginner`curl: (28) Failed to connect to api.internal port 443 after 130001 ms: Connection timed out`Beginner`ssh: connect to host 10.1.4.20 port 22: No route to host`BeginnerService works with `curl localhost:3000` on the box but times out from other hosts.Beginner`ping` works but `curl` to port 80 on the same host times out.Beginner`curl` to a public site works, but `ping 8.8.8.8` shows 100% packet loss.Beginner