Documentation

Util
in package

Table of Contents

Properties

$retriableErrorCodes  : mixed

Methods

execute()  : mixed
Executes a CURL request with optional retries and exception on failure

Properties

$retriableErrorCodes

private static mixed $retriableErrorCodes = array(CURLE_COULDNT_RESOLVE_HOST, CURLE_COULDNT_CONNECT, CURLE_HTTP_NOT_FOUND, CURLE_READ_ERROR, CURLE_OPERATION_TIMEOUTED, CURLE_HTTP_POST_ERROR, CURLE_SSL_CONNECT_ERROR)

Methods

execute()

Executes a CURL request with optional retries and exception on failure

public static execute(resource $ch[, mixed $retries = 5 ][, mixed $closeAfterDone = true ]) : mixed
Parameters
$ch : resource

curl handler

$retries : mixed = 5
$closeAfterDone : mixed = true
Tags
throws
RuntimeException

        
On this page

Search results