You are here

constant SocketPost::BAD_RESPONSE in reCAPTCHA 6.2

@const string Bad response error

File

recaptcha-php/src/ReCaptcha/RequestMethod/SocketPost.php, line 58

Class

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.

Namespace

ReCaptcha\RequestMethod

Code

const BAD_RESPONSE = '{"success": false, "error-codes": ["invalid-response"]}';