WireHttp::getUserAgent() method

Get the current user-agent header

To set the user agent header, use $http->setHeader('user-agent', '...'); or in 3.0.183+ there is also $http->setUserAgent('...');

Usage

$string = $http->getUserAgent();

Return value

string


$http methods and properties

API reference based on ProcessWire core version 3.0.251