Skip to content

classes_modules_curlwrapper_webrequest.class

Daniel Spors edited this page Dec 19, 2023 · 2 revisions

Classes in file modules/curlwrapper/webrequest.class.php

class WebRequest

Task to perform webrequests.

Extends: Task

Get

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

Post

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

Run

OVERRIDE Task::Run

Trigger

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

Clone this wiki locally