[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/ -> SocketPost.php (summary)

This is a PHP library that handles calling reCAPTCHA.

Copyright: Copyright (c) 2015, Google Inc.
File Size: 121 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SocketPost:: (2 methods):
  __construct()
  submit()


Class: SocketPost  - X-Ref

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.

__construct(Socket $socket = null)   X-Ref
Constructor

param: \ReCaptcha\RequestMethod\Socket $socket optional socket, injectable for testing

submit(RequestParameters $params)   X-Ref
Submit the POST request with the specified parameters.

param: RequestParameters $params Request parameters
return: string Body of the reCAPTCHA response



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1