I would like to translate the following HTTP GET command to work with RCurl:
curl -G https://api.example.com/resource \
-d "param=value" \
-d "param=value" \
-u 'user:password'
Here is my attempt using getURL in RCurl:
getURL("https://api.example.com/resource",
userpwd ="username:password",param="value",param="value")
The first code block works fine in my command line terminal and I have no troubles using getURL until I try to set parameters; I get warning messages saying that the params are "Unrecognized CURL options". Any ideas?