-
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 $urlURL to get from -
array $headerHeaders to send
Perform a POST request.
Definition: public static function Post($url, $data, $header)
Returns: string The response as text
Parameters:
-
string $urlURL to get from -
array $dataData to send -
array $headerHeaders 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 $urlURL to get from -
array $dataData to send -
array $headerHeaders to send