cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: passing domain IP to curl library

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 5 Aug 2009 20:00:10 +0200 (CEST)

On Wed, 5 Aug 2009, Pavel Gushcha wrote:

> How i can pass resolved domain IP to curl and prevent name resolution by
> CURL?

Resolve it yourself and invoke curl like:

  curl http://1.2.3.4/file -H "Host: example.com"

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-08-05