Please help about RCurl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Please help about RCurl

Olive Park
This post has NOT been accepted by the mailing list yet.
Dear R Users,

I am trying to post my XML codes into my mongoDB server using RCurl like:

a <- "<name=xyz>3.5</name>"
httpPUT(url, content=a)

This works but it takes more than 2 seconds.  
Anybody knows how to make this faster?

Plus, I would like to know how to upload my file using httpPUT.
httpPUT(url, content="C:/Users/...") does not work.
PUT(url, body=list(upload_file("C:/Users/..."))) also does not work.