Learn R Programming

RCurl (version 1.3-1)

complete: 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, ...)

Arguments

obj
the object which is to be completed. This is typically a MultiCURLHandle-class instance.
...
additional arguments intended to be used by specific methods.

Value

    References

    http://curl.haxx.se, specifically the multi interface of libcurl.

    See Also

    MultiCURLHandle-class push, pop

    Examples

    Run this code
    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 = ""),
                                     "text/plain"))
    
    postForm("http://eeyore.ucdavis.edu/cgi-bin/testForm1.pl",
             "fileData" = fileUpload(f,
                                     paste(readLines(f), collapse = "")
                                     ),
              .opts = list(verbose = TRUE, header = TRUE))

    Run the code above in your browser using DataLab