cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Need option to set IP/Port with CUrl request as FQDN

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 5 Sep 2013 22:33:48 +0200 (CEST)

On Thu, 5 Sep 2013, Gaurav Rastogi -X (garastog - ARICENT TECHNOLOGIES MAURIITIUS LIMITED at Cisco) wrote:

> 3. What we want is that : Is there any option using which we can set this
> IP/port using CURL interface which should be independent from the URL, so
> that we can avoid sending DNS lookup request to DNS server. Please note we
> need to set FQDN in https request URL as we are validating 3rd party
> certificates using the FQDN.

Are you looking for CURLOPT_RESOLVE ?

   http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTRESOLVE

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-05