FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\Application\CurlRequest Class Reference

Handle curl requests. More...

Collaboration diagram for Fossology\Lib\Application\CurlRequest:
Collaboration graph

Public Member Functions

 __construct ($url)
 
 setOptions ($options)
 
 execute ()
 
 getInfo ($resource)
 
 close ()
 

Private Attributes

 $handle = null
 

Detailed Description

Handle curl requests.

Definition at line 23 of file CurlRequest.php.

Constructor & Destructor Documentation

◆ __construct()

Fossology\Lib\Application\CurlRequest::__construct (   $url)

Constructor to initialize curl handler with URL.

Parameters
string$urlURL to initialize handler with.

Definition at line 35 of file CurlRequest.php.

Member Function Documentation

◆ close()

Fossology\Lib\Application\CurlRequest::close ( )

Close the curl handle.

Definition at line 71 of file CurlRequest.php.

◆ execute()

Fossology\Lib\Application\CurlRequest::execute ( )

Execute curl request.

Returns
bool

Definition at line 53 of file CurlRequest.php.

◆ getInfo()

Fossology\Lib\Application\CurlRequest::getInfo (   $resource)

Get info from curl request.

Parameters
int$resourceRequired info
Returns
mixed

Definition at line 63 of file CurlRequest.php.

◆ setOptions()

Fossology\Lib\Application\CurlRequest::setOptions (   $options)

Set curl options for the handle

Parameters
array$optionsOptions for curl handler

Definition at line 44 of file CurlRequest.php.

Member Data Documentation

◆ $handle

resource Fossology\Lib\Application\CurlRequest::$handle = null
private

Resource to handle curl requests.

Definition at line 29 of file CurlRequest.php.


The documentation for this class was generated from the following file: