Overview
Features
Download
Documentation
Community
Add-Ons & Services

Error : Address family not supported

Please post support and help requests here.

Error : Address family not supported

Postby aromanino » 17 Jun 2014, 17:02

If i run this example code e get this error "Address family not supported":
Can anyone help me? I Wok on Mac Os 10.7.5
Thanks...

try{

URI uri("http://localhost:3000/api/parkings/123/occupylots");


HTTPClientSession s(uri.getHost(),uri.getPort());

string path(uri.getPathAndQuery());
if (path.empty()) path = "/";

cout << "path: " << path << endl;

HTTPRequest request(HTTPRequest::HTTP_PUT, path , HTTPRequest::HTTP_1_1);
request.setHost("localhost",3000);
request.setKeepAlive(false);
request.setContentType("application/json");
s.sendRequest(request);
}catch (Poco::Exception e) {
cout <<"eccezione: "<< e.displayText();
}
aromanino
 
Posts: 1
Joined: 17 Jun 2014, 16:53

Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests

cron