Documentation

CurlPost
in package
implements RequestMethod

Sends cURL request to the reCAPTCHA service.

Note: this requires the cURL extension to be enabled in PHP

Tags
see
http://php.net/manual/en/book.curl.php

Table of Contents

Interfaces

RequestMethod
Method used to send the request to the service.

Properties

$curl  : Curl
Curl connection to the reCAPTCHA service
$siteVerifyUrl  : string
URL for reCAPTCHA siteverify API

Methods

__construct()  : mixed
Only needed if you want to override the defaults
submit()  : string
Submit the cURL request with the specified parameters.

Properties

$curl

Curl connection to the reCAPTCHA service

private Curl $curl

$siteVerifyUrl

URL for reCAPTCHA siteverify API

private string $siteVerifyUrl

Methods

__construct()

Only needed if you want to override the defaults

public __construct([Curl $curl = null ][, string $siteVerifyUrl = null ]) : mixed
Parameters
$curl : Curl = null

Curl resource

$siteVerifyUrl : string = null

URL for reCAPTCHA siteverify API

submit()

Submit the cURL request with the specified parameters.

public submit(RequestParameters $params) : string
Parameters
$params : RequestParameters

Request parameters

Return values
string

Body of the reCAPTCHA response


        
On this page

Search results