cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Antw:make curl connect to a given IP/vhost?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 7 Sep 2010 19:43:58 +0200 (CEST)

On Tue, 7 Sep 2010, Tomasz Chmielewski wrote:

> wget http://1.1.1.1/ --header 'Host: www.example.com'
>
> So, curl's equivalent would be:
>
> -H/--header

About time we got this into the FAQ so here it is:

    http://curl.haxx.se/docs/faq.html#How_do_I_get_HTTP_from_a_host_us

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-07