File path: dist/twist/Core/Utilities/Curl.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
patch
— Make 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.
Name | Description |
---|---|
$strURL | n/a |
[$mxdRequestData = array()] | n/a |
[$arrHeaders = array()] | n/a |
void — No return information has been documented for this function.
<?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);