Documentation

HttpUtility
in package

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

Constants

HEADERS

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]

Methods

guzzleGet()

public static guzzleGet(string $url) : string
Parameters
$url : string
Tags
throws
GuzzleException
throws
Exception
Return values
string

httpGet()

public static httpGet(string $url) : string
Parameters
$url : string
Return values
string

wordpressGet()

public static wordpressGet(string $url) : string
Parameters
$url : string
Tags
throws
Exception
Return values
string

        
On this page

Search results