After struggling for half a day, I finally manage to get reCAPTCHA to work by converting this function:
function _recaptcha_http_post($host, $path, $data, $p
I might be wrong, but you use $port = 80
in fsockopen()
while in cURL case this variable is not used at all. I had same problem when tried to connect to SSL via port 80
instead of port 443
; as far as I know, cURL
checks SSL by default and connects accordingly.
Also, try running cURL
with CURLOPT_VERBOSE to see what it does.