curl-library
Overriding DNS queries
Date: Thu, 10 May 2001 12:03:48 -0700
Hi all,
I've looked through the documentation and don't see any mention of
this, and thought I'd ask before I start grovelling through the code.
I need to be able to send an HTTP request to a specific IP address,
overriding the hostname->IP mapping that libcurl would normally do,
something like:
curl_easy_setopt(curl, CURLOPT_URL, "http://example.invalid/")
curl_easy_setopt(curl, CURLOPT_ADDRESS, "172.17.10.11")
...to connect to 172.17.10.11 and do a
GET / HTTP/1.1
Host: example.invalid
Is this functionality there? If not, would it be a useful addition to
patch in?
Cheers,
Steve
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-05-10