getCurlInfo | R Documentation |
This function provides access to data about a previously
executed CURL request that is accessible via a
CURLHandle
object.
This means, of course, that one must have access to the CURLHandle
object.
The information one can get includes items such as the name of the
file (potentially containing redirects), download time,
See getCurlInfoConstants
for the names of the possible fields.
getCurlInfo(curl, which = getCurlInfoConstants())
getCurlInfoConstants()
curl |
the |
which |
identifiers for the elements of interest.
These can be specified by integer value or by name.
The names are matched against those in the
|
.
This is an interface to the get_curl_info
routine in
the libcurl package.
A named list whose elements correspond to the requested fields. The names are expanded to match the names of these fields and the values are either strings or integer values.
Duncan Temple Lang
Curl homepage https://curl.se/
curlPerform
getURL
getCurlHandle
if(url.exists("https://www.omegahat.net/RCurl/index.html")) withAutoprint({
curl = getCurlHandle()
txt = getURL("https://www.omegahat.net/RCurl/index.html", curl = curl)
getCurlInfo(curl)
rm(curl) # release the curl!
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.