complete | R Documentation |
This is a generic function that is used within the RCurl package to force the completion of an HTTP request. If the request is asynchronous, this essentially blocks until the request is completed by repeatedly asking for more information to be retrieved from the HTTP connection.
complete(obj, ...)
obj |
the object which is to be completed. This is typically a
|
... |
additional arguments intended to be used by specific methods. |
The value is typically not of interest, but rather the side effect of processing the pending requests.
Duncan Temple Lang
https://curl.se/, specifically the multi interface of libcurl.
MultiCURLHandle-class
push
, pop
## Not run: # it does not exist
if(url.exists("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl")) {
f = system.file("NAMESPACE", package = "RCurl")
postForm("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl",
"fileData" = fileUpload(f))
postForm("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl",
"fileData" = fileUpload("",
paste(readLines(f), collapse = "\n"),
"text/plain"))
postForm("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl",
"fileData" = fileUpload(f,
paste(readLines(f), collapse = "\n")
),
.opts = list(verbose = TRUE, header = TRUE))
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.