Curl
extends Curl
in package
Implement curl request
This class provides general interfaces to handle curl requests.
Tags
Table of Contents
- __construct() : mixed
- Curl constructor.
Methods
__construct()
Curl constructor.
public
__construct([string $method = 'GET' ][, string|null $host = null ][, string|null $url = null ]) : mixed
Parameters
- $method : string = 'GET'
-
The request method
- $host : string|null = null
-
The full hostname with port and protocol
- $url : string|null = null
-
The relative url to call