TwistPHP Documentation

setUserAgent

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

setUserAgentSet a custom user agent header to be used when making the request, pass in null to use default user agent

Parameters

Name Type Description
[$strUserAgent = null]stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strUserAgent null;

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