cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: get server ip from load balanced redirect?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 25 Oct 2007 12:09:56 -0700

On Thu, Oct 25, 2007 at 02:41:56PM -0400, Drew Canitz wrote:
> When I change my code to this...
>
> char *effectiveUrl = NULL;
> curl_easy_getinfo( hCurl_, CURLINFO_EFFECTIVE_URL, &effectiveUrl );
>
> My data is now...
>
> effectiveUrl[0] is 0xee
> effectiveUrl[1] is 0xfe
> effectiveUrl[2] is 0xee
> effectiveUrl[3] is 0xfe
>
> ...and so on. Still not the server address or IP.

That's odd. Check the return code from curl_easy_getinfo--maybe it's
erring out for some reason. Does the curl_easy_perform return an error,
too?

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-10-25