Skip to content

cUrl error (#7): couldn't connect to host #43

@kdkaushik

Description

@kdkaushik

to debug I have added following code

if ($result === FALSE) {
printf("cUrl error (#%d): %s
\n", curl_errno($ch),
htmlspecialchars(curl_error($ch)));
}

Just before line - curl_close($ch);

It give me following error

cUrl error (#7): couldn't connect to host

When I manually try to connect at $host/api/hardware_servers/list it ask me password and username via a popup window. I provide the credentials and got the detail as -

<hardware_servers type="array">
<hardware_server>
<daemon_port type="integer">7767</daemon_port>
<default_os_template>centos-5</default_os_template>
<default_server_template>vswap-256m</default_server_template>

localhost
1
<use_ssl type="boolean">false</use_ssl>
true
</hardware_server>
</hardware_servers>

please help me ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions