메소드 |
설명 |
|
__construct ( string $url, array $opts = null ) : Curl |
Constructor |
|
__destruct ( ) : void |
Close the cURL session. |
|
execute ( ) : mixed |
Execute the cURL session. |
|
getBody ( ) : string |
Get the cURL response body |
|
getCode ( ) : string |
Get the cURL response code |
|
getField ( string $name ) : mixed |
Get a field |
|
getFields ( ) : array |
Get all field |
|
getHeader ( string $name ) : mixed |
Get a response header |
|
getHeaders ( ) : array |
Get all response headers |
|
getHttpVersion ( ) : string |
Get the cURL response HTTP version |
|
getInfo ( integer $opt = null ) : array | string |
Return the cURL session last info. |
|
getMessage ( ) : string |
Get the cURL response HTTP message |
|
getOption ( integer $opt ) : string |
Get a cURL session option. |
|
getRawHeader ( ) : string |
Get raw response header |
|
getResponse ( ) : string |
Get the full cURL response |
|
isPost ( ) : boolean |
Check if cURL is set to POST |
|
isReturnHeader ( ) : boolean |
Check if cURL is set to return header |
|
isReturnTransfer ( ) : boolean |
Check if cURL is set to return transfer |
|
setField ( string $name, mixed $value ) : Curl |
Set a field |
|
setFields ( array $fields ) : Curl |
Set all fields |
|
setOption ( array | integer $opt, string $val = null ) : Curl |
Set cURL session option(s). |
|
setPost ( boolean $post = false ) : Curl |
Set cURL option for POST |
|
setReturnHeader ( boolean $header = false ) : Curl |
Set cURL option to return the header |
|
setReturnTransfer ( boolean $transfer = false ) : Curl |
Set cURL option to return the transfer |
|
version ( ) : array |
Return the cURL version. |
|