TwistPHP Documentation

makeRequest

File path: dist/twist/Core/Utilities/Curl.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

makeRequestThe function that makes the CURL requests, all data is passed in and the response is returned

Parameters

Name Type Description
$strURLstringn/a
[$arrRequestData = array()]arrayn/a
[$strType = 'get']stringn/a
[$arrHeaders = array()]arrayn/a
[$strRawData = '']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strURL 'foo';
$arrRequestData = array();
$strType 'get';
$arrHeaders = array();
$strRawData '';

//Call the function makeRequest with the example vars
Twist::Curl() -> makeRequest($strURL$arrRequestData$strType$arrHeaders$strRawData);