-
Notifications
You must be signed in to change notification settings - Fork 34
classes_modules_curlwrapper_webrequest.class
Daniel Spors edited this page Dec 19, 2023
·
2 revisions
Task to perform webrequests.
Extends: Task
Perform a GET request.
Definition: public static function Get($url, $header)
Returns: string
The response as text
Parameters:
-
string $url
URL to get from -
array $header
Headers to send
Perform a POST request.
Definition: public static function Post($url, $data, $header)
Returns: string
The response as text
Parameters:
-
string $url
URL to get from -
array $data
Data to send -
array $header
Headers to send
OVERRIDE Task::Run
Triggers a web request to be run async.
Definition: public static function Trigger($url, $data=false, $header)
Returns: void
Parameters:
-
string $url
URL to get from -
array $data
Data to send -
array $header
Headers to send