How to send a web request using a made-up domain name

Sometimes, I have to test a webservice from a device who can’t resolve the name of it.

When that’s required, you can count on CURL to achieve that easily:

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

Leave a Reply