File path: dist/twist/Core/Utilities/Curl.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
Type: Utility
Curl
— Simply make GET, POST, PUT and DELETE CURL requests, set custom headers, decode JSON responses. Transferring data via many different protocols including HTTP, HTTPS, FTP, FTPS, TELNET, LDAP and many more.
<?php
//Set the variables for the example
$blEnable = true;
//Call the function disableUrlEncoding with the example vars
Twist::Curl() -> disableUrlEncoding($blEnable);
Method | Access | Returns |
---|---|---|
__construct | construct | void |
decodeResponseJSON | public | void |
disableUrlEncoding | public | void |
verifySSLRequest | public | void |
setTimeout | public | void |
setUserAgent | public | void |
setUserPass | public | void |
setSSLCertificate | public | void |
setContentType | public | void |
setCookies | public | void |
get | public | void |
post | public | void |
put | public | void |
patch | public | void |
delete | public | void |
makePostRequest | protected | void |
makeRequest | protected | void |
getRequestInformation | public | void |
getRequestError | public | void |