Request for a http/https resource
public static request ( string $url, array $params = [], string $httpMethod = 'GET', boolean $multi = false ) : string | false | ||
$url | string | Url to request |
$params | array | Parameters for the request |
$httpMethod | string | Http method, 'GET' or 'POST' |
$multi | boolean | Whether it's a multipart POST request |
return | string | false | Returns string if success, or false if failed |