omegahat / RCurl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to use Rcurl

pronix opened this issue · comments

hello
i want sent by Rcurl request
curl -k -u NAME:Password --data-urlencode search="search error | head 10" -d "output_mode=csv" https://api.splunk/servicesNS/vasilets/search/search/jobs/export

but i can find where defined data-urlencode
please show how to make requesr by Rcurl.
thanks

Hi
I'd experiment with postForm()

u = 'https://api.splunk/servicesNS/vasilets/search/search/jobs/export'
postForm(u, search = "search error | head 10", 
                  .opts = list(userpwd = "name:password", sslverifypeer = FALSE), style = 'post')