I have the same error with connecting to menalto Gallery 3.
Could not connect to Gallery3: failed to connect to Gallery3 (http status code: 0)
The URL is correct as I can test it directly within Firefox
https://devsite.mydomain/gallery/index.php/rest/
I can access and get an XML response that appears complete if I try to access as per the test instructions from the Gallery Wiki on Browsing Rest
I’ve used the Guest account (setting guest rest enable to 1) and I created another user called ‘rest’ and tried with that Rest Key as well.
<digress>I am getting a CURL error in the log
PHP Warning: curl_setopt() [<a href='function.curl-setopt'>function.curl-setopt</a>]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in absolute_path/wp-content/plugins/g3client/client.php on line 72
But I think this is a separate issue. I can change the setting on line 72 from True to False and while that stops the CURL error there is no change in the ‘Could not connect’ message. I expect that this CURL function is only required for Gallery sites that are remote to the WP site but would appreciate a confirmation.</digress>
I have also tried the Gallery 3 WordPress Plugin from Heiv but I get the same error. Which suggests that it is not a plugin issue as much as a server config issue, but where to look?
Any help appreciated. I am using WP 3.1.2 Network config on Linux.
cheers
Tony