HttpUtility
Table of Contents
Constants
-
HEADERS
= ['headers' => ['User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0'], 'timeout' => 30]
Methods
-
guzzleGet()
: string
-
httpGet()
: string
-
wordpressGet()
: string
public
mixed
HEADERS
= ['headers' => ['User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0'], 'timeout' => 30]
guzzleGet()
public
static guzzleGet(string $url) : string
Parameters
-
$url
: string
-
-
throws
-
GuzzleException
-
throws
-
Exception
httpGet()
public
static httpGet(string $url) : string
Parameters
-
$url
: string
-
wordpressGet()
public
static wordpressGet(string $url) : string
Parameters
-
$url
: string
-
-
throws
-
Exception