EVOLUTION-MANAGER
Edit File: getCurlInfo.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Access information about a CURL request</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for getCurlInfo {RCurl}"><tr><td>getCurlInfo {RCurl}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Access information about a CURL request</h2> <h3>Description</h3> <p>This function provides access to data about a previously executed CURL request that is accessible via a <code>CURLHandle</code> object. This means, of course, that one must have access to the <code>CURLHandle</code> object. The information one can get includes items such as the name of the file (potentially containing redirects), download time, </p> <p>See <code><a href="getCurlInfo.html">getCurlInfoConstants</a></code> for the names of the possible fields. </p> <h3>Usage</h3> <pre> getCurlInfo(curl, which = getCurlInfoConstants()) getCurlInfoConstants() </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>curl</code></td> <td> <p>the <code>CURLHandle</code> object used to perform the request. This is a reference to an opaque internal C-level data structure that is provided and used by libcurl to make a request.</p> </td></tr> <tr valign="top"><td><code>which</code></td> <td> <p>identifiers for the elements of interest. These can be specified by integer value or by name. The names are matched against those in the <code><a href="getCurlInfo.html">getCurlInfoConstants</a></code></p> </td></tr></table> <p>. </p> <h3>Details</h3> <p>This is an interface to the <code>get_curl_info</code> routine in the libcurl package. </p> <h3>Value</h3> <p>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. </p> <h3>Author(s)</h3> <p>Duncan Temple Lang</p> <h3>References</h3> <p>Curl homepage <a href="http://curl.haxx.se">http://curl.haxx.se</a></p> <h3>See Also</h3> <p><code><a href="curlPerform.html">curlPerform</a></code> <code><a href="getURL.html">getURL</a></code> <code><a href="getCurlHandle.html">getCurlHandle</a></code> </p> <h3>Examples</h3> <pre> if(url.exists("http://www.omegahat.net/RCurl/index.html")) withAutoprint({ curl = getCurlHandle() txt = getURL("http://www.omegahat.net/RCurl/index.html", curl = curl) getCurlInfo(curl) rm(curl) # release the curl! }) </pre> <hr /><div style="text-align: center;">[Package <em>RCurl</em> version 1.98-1.2 <a href="00Index.html">Index</a>]</div> </body></html>