Debian Codegraph @

man/complete.Rd

raw
1 \name{complete}
2 \alias{complete}
3 \alias{complete,MultiCURLHandle-method}
4 \title{Complete an asynchronous HTTP request}
5 \description{
6 This is a generic function that is used within the
7 RCurl package to force the completion of an
8 HTTP request. If the request is asynchronous,
9 this essentially blocks until the request is completed
10 by repeatedly asking for more information to be
11 retrieved from the HTTP connection.
12 }
13 \usage{
14 complete(obj, ...)
15 }
16 %- maybe also 'usage' for other objects documented here.
17 \arguments{
18 \item{obj}{the object which is to be completed. This is typically a
19 \code{\link{MultiCURLHandle-class}} instance.}
20 \item{\dots}{additional arguments intended to be used by specific methods.}
21 }
22 \value{
23 The value is typically not of interest, but rather the side effect
24 of processing the pending requests.
25 }
26 \references{
27 \url{https://curl.se/}, specifically the multi interface of libcurl.
28 }
29 \author{Duncan Temple Lang}
30 \seealso{
31 \code{\link{MultiCURLHandle-class}}
32 \code{\link{push}}, \code{\link{pop}}
33 }
34 \examples{
35 \dontrun{# it does not exist
36 if(url.exists("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl")) {
37
38 f = system.file("NAMESPACE", package = "RCurl")
39 postForm("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl",
40 "fileData" = fileUpload(f))
41
42
43 postForm("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl",
44 "fileData" = fileUpload("",
45 paste(readLines(f), collapse = "\n"),
46 "text/plain"))
47
48 postForm("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl",
49 "fileData" = fileUpload(f,
50 paste(readLines(f), collapse = "\n")
51 ),
52 .opts = list(verbose = TRUE, header = TRUE))
53 }}
54 }
55 \keyword{IO}
56