CURLHandle-class function

Class "CURLHandle" for synchronous HTTP requests

Class "CURLHandle" for synchronous HTTP requests

This is the basic class used for performing HTTP requests in the RCurl package. In R, this is a reference to a C-level data structure so we treat it as an opaque data type. However, essentially we can think of this as an with a set of options that persists across calls, i.e. HTTP requests. The numerous options that one can set can be see via getCurlOptionsConstants. The object can keep a connection to a Web server open for a period of time across calls.

This class differs from MultiCURLHandle-class as it can handle only one request at a time and blocks until the request is completed (normally or abnormally). The other class can handle asynchronous, multiple connections. class

Objects from the Class

A virtual Class: No objects may be created from it.

Extends

Class "oldClass", directly.

References

https://curl.se/, the libcurl web site.

Author(s)

Duncan Temple Lang

See Also

getURL, getForm, postForm

dupCurlHandle, getCurlHandle, MultiCURLHandle-class

  • Maintainer: CRAN Team
  • License: BSD_3_clause + file LICENSE
  • Last published: 2025-03-22

Useful links