curl / Mailing Lists / curl-library / Single Mail


Re: Primary IP

From: Frank Gevaerts <>
Date: Wed, 22 Mar 2017 10:44:33 +0100

On Wed, Mar 22, 2017 at 09:32:34AM +0000, Michael via curl-library wrote:
> HiI get nothing returned:
> char *ip;...
> curl_easy_setopt(curl, CURLOPT_READDATA,curl_easy_getinfo(curl, CURLINFO_PRIMARY_IP,&ip));...does primary_ip work at all or am I doing something wrong?Thanks

You're calling curl_easy_setopt() with a CURLINFO_* value. You probably
want curl_easy_getinfo()


> -------------------------------------------------------------------
> Unsubscribe:
> Etiquette:

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
Received on 2017-03-22