cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: get server ip from load balanced redirect?

From: Drew Canitz <drewcanitz_at_gmail.com>
Date: Thu, 25 Oct 2007 10:11:08 -0400

I've tried that. I seem to get garbage data.

On 10/25/07, Michal Marek <mmarek_at_suse.cz> wrote:
>
> 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