cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Re: Requesting an Apache virtual host with CURL

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

On 12/13/06, Dan Fandrich <dan_at_coneharvesters.com> 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: www.domain.com' to set the virtual host.

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