Skip to content

libcURL.cURLSession

Andrew Lambert edited this page Jul 1, 2023 · 9 revisions

libcURL.cURLSession

Class Declaration

 Protected Class cURLSession

Remarks

This class is a generic libcURL client. Use one of the overloaded Perform methods to begin processing a transfer.

This class can perform both synchronous and asynchronous requests, depending on which version of Perform is called. Synchronous versions return True on success. Asynchronous methods do not return a value.

Synchronous requests will be performed on the calling thread; asynchronous requests will be performed on the main event loop. The event loop must be allowed to run in order for asynchronous transfers to operate.

This class uses one EasyHandle and one MultiHandle to perform all transfers, and only one transfer can be processed at a time. Attempting to initiate a new transfer before the previous transfer completes will raise a cURLException with error number CURLM_ADDED_ALREADY (7).

The EasyHandle is configured with options that are not the defaults for EasyHandle:

Event Definitions

Methods

Properties

See also

Clone this wiki locally