File path: dist/twist/Core/Helpers/Curl.helper.php
Namespace: Twist\Core\Helpers
Extends: Base
Type: Class
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 |
acceptEncoding | public | void |
verifySSLRequest | public | void |
setTimeout | public | void |
setNoBody | public | void |
setFollowRedirects | public | void |
setFailOnError | 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 |
httpParseHeaders | protected | void |