Skip to content

class SocketPost

Oliver edited this page Apr 25, 2020 · 1 revision

www/includes/g-recaptcha-src/ReCaptcha/RequestMethod/SocketPost.php


SocketPost

Package

Default

Implements

\ReCaptcha\RequestMethod

Overview

Public Properties

No public properties found

Constants

BAD_REQUEST() | BAD_RESPONSE() | RECAPTCHA_HOST() | SITE_VERIFY_PATH() |

Public Methods

__construct() | submit() |

Constants

BAD_REQUEST

BAD_REQUEST = '{"success": false, "error-codes": ["invalid-request"]}' :

www/includes/g-recaptcha-src/ReCaptcha/RequestMethod/SocketPost.php

Tags
  • const: string Bad request error

BAD_RESPONSE

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

www/includes/g-recaptcha-src/ReCaptcha/RequestMethod/SocketPost.php

Tags
  • const: string Bad response error

RECAPTCHA_HOST

RECAPTCHA_HOST = 'www.google.com' :

reCAPTCHA service host.

www/includes/g-recaptcha-src/ReCaptcha/RequestMethod/SocketPost.php

Tags
  • const: string

SITE_VERIFY_PATH

SITE_VERIFY_PATH = '/recaptcha/api/siteverify' :

www/includes/g-recaptcha-src/ReCaptcha/RequestMethod/SocketPost.php

Tags
  • const: string reCAPTCHA service path

Properties

socket

Socket to the reCAPTCHA service

private $socket : \ReCaptcha\RequestMethod\Socket

Array

Methods

__construct()

Constructor

public __construct(\ReCaptcha\RequestMethod\Socket $socket = null) : mixed

submit()

Submit the POST request with the specified parameters.

public submit(\ReCaptcha\RequestParameters $params) : string


\ » Classes » SocketPost

Clone this wiki locally