curl-users
Re: Cannot resolve localhost or 127.0.0.1
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 11 Jan 2008 10:53:18 -0800
Date: Fri, 11 Jan 2008 10:53:18 -0800
On Fri, Jan 11, 2008 at 10:26:54AM -0800, weiping guo wrote:
> //composite the requested url
> // http://127.0.0.1:8000/
> char url[REQUEST_LEN*2];
> memset(url,0, REQUEST_LEN*2);
> int n = sprintf(url, "// http://127.0.0.1:8000/connector", this->proxy_ip_, this->proxy_port_, this->proxy_url_, request);
This line is clearly wrong. It will result in a URL of
"// http://127.0.0.1:8000/connector" which isn't a URL at all. The four
parameters after the string aren't even used.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-01-11