SocketPost

Sends a POST request to the reCAPTCHA service, but makes use of fsockopen() instead of get_file_contents(). This is to account for people who may be on servers where allow_furl_open is disabled.
implements ReCaptcha\RequestMethod
Methods Summary
public
# __construct( ReCaptcha\RequestMethod\Socket $socket = NULL )
Constructor
public
# submit( ReCaptcha\RequestParameters $params )
Submit the POST request with the specified parameters.

Implementation of

Constants Summary
public string RECAPTCHA_HOST
reCAPTCHA service host.
# 'www.google.com'
public string SITE_VERIFY_PATH

# '/recaptcha/api/siteverify'
public string BAD_REQUEST

# '{"success": false, "error-codes": ["invalid-request"]}'
public string BAD_RESPONSE

# '{"success": false, "error-codes": ["invalid-response"]}'