Guest User

Untitled

a guest
Nov 24th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. library(RCurl)
  2.  
  3. options(RCurlOptions = list(
  4. cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"),
  5. followlocation = TRUE,
  6. httpheader = c(
  7. Accept = "text/xml",
  8. Accept = "multipart/*",'Content-Type' = "text/xml; charset=utf-8",
  9. SOAPAction="INTRANET URL"
  10. ),
  11. userpwd = "USERID:PASSWORD",
  12. netrc = TRUE,
  13. timeout = 100,
  14. postfields = CONTAINS SOAP DATA,
  15. writefunction = reader$update,
  16. verbose= TRUE,
  17. httpauth = AUTH_BASIC)
  18. )
  19.  
  20. getForm(
  21. uri = "INTRANET URL",
  22. file = fileUpload(
  23. filename = "C:\Users\Username\Desktop\image001.pdf",
  24. contentType = "application/pdf"
  25. ),
  26. upload=TRUE
  27. )
Add Comment
Please, Sign In to add comment