Curl |
recaptcha-php/src/ReCaptcha/RequestMethod/Curl.php |
Convenience wrapper around the cURL functions to allow mocking. |
CurlPost |
recaptcha-php/src/ReCaptcha/RequestMethod/CurlPost.php |
Sends cURL request to the reCAPTCHA service.
Note: this requires the cURL extension to be enabled in PHP |
Drupal8Post |
src/ReCaptcha/RequestMethod/Drupal8Post.php |
Sends POST requests to the reCAPTCHA service with Drupal 8 httpClient. |
Post |
recaptcha-php/src/ReCaptcha/RequestMethod/Post.php |
Sends POST requests to the reCAPTCHA service. |
Socket |
recaptcha-php/src/ReCaptcha/RequestMethod/Socket.php |
Convenience wrapper around native socket and file functions to allow for
mocking. |
SocketPost |
recaptcha-php/src/ReCaptcha/RequestMethod/SocketPost.php |
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_url_open is disabled. |