inst/examples/passwd2.S

x = getURL("http://192.168.0.3/stat141/Winter04/Homework/Solutions/index.html",
#                 userpwd = "name:passwd:",
#                  userpwd = "bob:",
                                     header = TRUE, verbose = TRUE,
                                     cookiefile = "/home/duncan/Rcookies",
                                     netrc = TRUE,
                                     maxredirs = as.integer(20),
                                     netrc.file = "/home2/duncan/.netrc1",
                                     followlocation = TRUE)

# This is no longer supported in libcurl.
# , passwdfunction = promptPassword)

Try the RCurl package in your browser

Any scripts or data that you put into this service are public.

RCurl documentation built on Nov. 3, 2023, 1:09 a.m.