| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Cannot resolve localhost or 127.0.0.1
From: weiping guo <weiping_guo_at_yahoo.com>
Date: Fri, 11 Jan 2008 10:26:54 -0800 (PST)
Hi All,
I need some help on this problem.
I have a very simple program to post some data to webpage in the localhost.
I have the following code snippet:
if( !this->curl_init_)
However, I got the error code CURLE_COULDNT_RESOLVE_HOST. This error is happened if this function is called for the first time. The subsequent calls would be all right.
I do not know how to make it work for the first call. I am currently using an ugly workaround, ‘call this function in the constructor’.
Any help or suggestions are appreciated.
Thanks.
____________________________________________________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info