cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: get server ip from load balanced redirect?

From: Markus Koetter <koettermarkus_at_gmx.de>
Date: Sat, 27 Oct 2007 18:37:19 +0200

Hi,

to retrieve the ip address of a established curl http connection:

either:
CURLINFO_LASTSOCKET & curl_easy_getinfo() to retrieve the last socket

or:
push the easy handle into a multi and retrieve the multis sockets using
curl_multi_fdset, got to figure out.

http://curl.haxx.se/libcurl/c/curl_multi_fdset.html

I guess the CURLINFO_EFFECTIVE_URL as mentioned before won't work as the
url is written only once the whole easy process is done?

MfG
Markus
Received on 2007-10-27