cURL / Mailing Lists / curl-users / Single Mail


Re: Re: Requesting an Apache virtual host with CURL

From: John Sherling <>
Date: Wed, 13 Dec 2006 23:18:59 -0800

On 12/13/06, Dan Fandrich <> wrote:

> There are a couple of ways you can do this. You can add an entry in
> /etc/hosts (or equivalent) with the new address and curl will use that
> to connect to the host. Or, you can use the -H trick you were so close to
> getting working. -H takes a whole HTTP header, so you need to do
> -H 'Host:' to set the virtual host.

Thanks Dan! That worked.
Received on 2006-12-14