curl-library
Re: get server ip from load balanced redirect?
From: Michal Marek <mmarek_at_suse.cz>
Date: Thu, 25 Oct 2007 15:52:28 +0200
Date: Thu, 25 Oct 2007 15:52:28 +0200
Drew Canitz wrote:
> Does anyone have a suggestion how I can get the IP address
> of the server that I've been redirected to and am really talking to?
Not really ip address, but you can get the url you were redirected to by
char *url;
curl_easy_getinfo(handle, CURLINFO_EFFECTIVE_URL, &url);
hth,
Michal
Received on 2007-10-25