Skip to main content


#Todayilearned that #curl has a --resolve option. Helped me a lot when debugging ingress on a docker swarm cluster.

> curl http://www.example.com --resolve www.example.com:80:127.0.0.1

will call port 80 on localhost instead of the public IP of www.example.com

This entry was edited (11 months ago)