cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Alex Bligh <alex_at_alex.org.uk>
Date: Tue, 07 Sep 2010 16:46:54 +0100

--On 7 September 2010 17:42:09 +0200 NIJSSEN <kees.nijssen_at_quicknet.nl>
wrote:

> curl <options> 1.1.1.1 or curl <options> 2.2.2.2

That is what he wants, I think, but it won't send the right http1.1 GET
line.

You might be able to use -x to set a proxy, and hope it works, but
failing that modifying /etc/hosts or doing an ldpreload for gethostbyname
is the only way I can think of without modifying the source code.

-- 
Alex Bligh
-------------------------------------------------------------------
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