inst/examples/readHeader.S

library(RCurl)

h = basicTextGatherer()
txt = getURL("http://192.168.0.3", header= TRUE, headerfunction = h[[1]], httpheader = c(Accept="text/html", Duncan="bob"), verbose = TRUE)
read.dcf(textConnection(paste(h$value(NULL)[-1], collapse="")))

Try the RCurl package in your browser

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

RCurl documentation built on May 29, 2024, 11:15 a.m.