I m using libcurl as a http client in my application.
I communicate to the HTTP serve with its url with the following libcurl function:
curl_easy_setopt(curl, CURLOPT_URL, url);
I want to know the IP address of the server url after sending the first http message. How I can do that with libcurl.
Note: the HTTP server could redirect the first HTTP message to another server. How to know the IP address of the second server?