TwistPHP Documentation

patch

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

patchMake a PATCH request to the provided URL, set the User Agent header when required. The post data can either be an array of parameters or raw body data e.g. XML/JSON.
If Raw data is used you must specify a content type for the request.

Parameters

Name Type Description
$strURLstringn/a
[$mxdRequestData = array()]mixedn/a
[$arrHeaders = array()]arrayn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strURL 'foo';
$mxdRequestData = array();
$arrHeaders = array();

//Call the function patch with the example vars
Twist::Curl() -> patch($strURL$mxdRequestData$arrHeaders);