I need to make HTTP POST commands using R. Are there any R http libraries that can do this?
+8
A:
Yes, RCurl
library(RCurl)
# example from the vignette:
x = postForm('http://www.wormbase.org/db/searches/advanced/dumper',
species="briggsae",
list="",
flank3="0",
flank5="0",
feature="Gene Models",
dump = "Plain TEXT",
orientation = "Relative to feature",
relative = "Chromsome",
DNA ="flanking sequences only",
.cgifields =c("feature", "orientation", "DNA", "dump", "relative"))
If you want fine-grained control over the posted entity and headers, you can use curlPerform
directly.
p00ya
2010-07-13 00:58:28