| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: Overriding DNS queries
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 May 2001 08:18:33 +0200 (MET DST)
On Thu, 10 May 2001, Steve Atkins wrote:
> I need to be able to send an HTTP request to a specific IP address,
The functionality is there, but the approach is slightly different. Use an
struct curl_slist *heads;
curl_easy_setopt(curl, CURLOPT_URL, "http://172.17.10.11");
heads = curl_slist_append(heads, "Host: example.invalid");
curl_easy_perform(curl);
curl_slist_free_all(heads);
-- Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/ _______________________________________________ Curl-library mailing list Curl-library_at_lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/curl-libraryReceived on 2001-05-11 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info