File: complete.Rd

package info (click to toggle)
r-cran-rcurl 1.95-4.8-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,140 kB
  • ctags: 515
  • sloc: ansic: 3,135; xml: 1,734; asm: 993; sh: 12; makefile: 2
file content (55 lines) | stat: -rw-r--r-- 1,799 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
\name{complete}
\alias{complete}
\alias{complete,MultiCURLHandle-method}
\title{Complete an asynchronous HTTP request}
\description{
  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.
}
\usage{
complete(obj, ...)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{obj}{the object which is to be completed. This is typically a
   \code{\link{MultiCURLHandle-class}} instance.}
  \item{\dots}{additional arguments intended to be used by specific methods.}
}
\value{
  The value is typically not of interest, but rather the side effect
  of processing the pending requests.
}
\references{
 \url{http://curl.haxx.se}, specifically the multi interface of libcurl.
}
\author{Duncan Temple Lang}
\seealso{
  \code{\link{MultiCURLHandle-class}}
  \code{\link{push}}, \code{\link{pop}}  
}
\examples{
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))
}
}
\keyword{IO}