src/Service/Request/ZendHttpClient.php
public function send(Parameters $params)
    {
        $this->client->setUri(ReCaptcha::VERIFY_SERVER);
        $this->client->setRawBody($params->toQueryString());
        $this->client->setEncType('application/x-www-form-urlencoded');
        $result = $this->client->setMethod('POST')->send();
        return $result ? $result->getBody() : null;
    }
public function send(Parameters $params)
    {
        $this->client->setUri(ReCaptcha::VERIFY_SERVER);
        $this->client->setRawBody($params->toQueryString());
        $this->client->setEncType('application/x-www-form-urlencoded');
        $result = $this->client->setMethod('POST')->send();
        return $result ? $result->getBody() : null;
    }
public function send ( Parameters $ params ) { $ this -> client -> setUri ( ReCaptcha :: VERIFY_SERVER ) ; $ this -> client -> setRawBody ( $ params -> toQueryString ( ) ) ; $ this -> client -> setEncType ( 'application/x-www-form-urlencoded' ) ; $ result = $ this -> client -> setMethod ( 'POST' ) -> send ( ) ; return $ result ? $ result -> getBody ( ) : null ; }
Submit ReCaptcha API request, return response body.

@param Parameters $params ReCaptcha parameters

@return string
Submit ReCaptcha API request return response body .