The easiest way to connect via curl to a different server is to alter the hosts file on your machine.
On Linux and Unix systems, the hosts file is located in /etc/hosts, while on Windows systems it will be located in c:\windows\system32\drivers\etc\hosts.
Once you open the file with a text editor ...