TwistPHP Documentation

Curl

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.

Example Usage

<?php
//Set the variables for the example
$blEnable true;

//Call the function disableUrlEncoding with the example vars
Twist::Curl() -> disableUrlEncoding($blEnable);

Method List

Method Access Returns
__constructconstructvoid
decodeResponseJSONpublicvoid
disableUrlEncodingpublicvoid
verifySSLRequestpublicvoid
setTimeoutpublicvoid
setNoBodypublicvoid
setFollowRedirectspublicvoid
setFailOnErrorpublicvoid
setUserAgentpublicvoid
setUserPasspublicvoid
setSSLCertificatepublicvoid
setContentTypepublicvoid
setCookiespublicvoid
getpublicvoid
postpublicvoid
putpublicvoid
patchpublicvoid
deletepublicvoid
makePostRequestprotectedvoid
makeRequestprotectedvoid
getRequestInformationpublicvoid
getRequestErrorpublicvoid
httpParseHeadersprotectedvoid