You are here

constant SocketPost::BAD_REQUEST in reCAPTCHA 6.2

@const string Bad request error

File

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

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_REQUEST = '{"success": false, "error-codes": ["invalid-request"]}';