TwistPHP Documentation

Curl

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.

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
acceptEncodingpublicvoid
verifySSLRequestpublicvoid
setTimeoutpublicvoid
setNoBodypublicvoid
setFollowRedirectspublicvoid
setFailOnErrorpublicvoid
setUserAgentpublicvoid
setUserPasspublicvoid
setSSLCertificatepublicvoid
setContentTypepublicvoid
setCookiespublicvoid
getpublicvoid
postpublicvoid
putpublicvoid
patchpublicvoid
deletepublicvoid
makePostRequestprotectedvoid
makeRequestprotectedvoid
getRequestInformationpublicvoid
getRequestErrorpublicvoid
httpParseHeadersprotectedvoid