'API' => 'Verify',
'XML' => $XMLQuery,
],
+ 'timeout' => \Civi::settings()->get('http_timeout'),
]);
$session = CRM_Core_Session::singleton();
$query = 'https://' . self::$_server . self::$_uri . $add;
$client = new GuzzleHttp\Client();
- $request = $client->request('GET', $query);
+ $request = $client->request('GET', $query, ['timeout' => \Civi::settings()->get('http_timeout')]);
$string = $request->getBody();
libxml_use_internal_errors(TRUE);
function _recaptcha_http_post($host, $path, $data) {
$client = new Client();
try {
- $response = $client->request('POST', $host . '/' . $path, ['query' => $data]);
+ $response = $client->request('POST', $host . '/' . $path, ['query' => $data, 'timeout' => \Civi::settings()->get('http_timeout')]);
}
catch (Exception $e) {
return '';