Guest User

Untitled

a guest
Feb 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. library(httr)
  2. xml <- "some XML content"
  3. response = POST(url ="https://xyzhost.com",
  4. content_type_xml(), accept_xml(),
  5. config = config(sslcert = "/path/to/cert.pem",
  6. sslkey = "/path/to/privatekey.pem",),
  7. body = as.character(xml), verbose())
  8.  
  9. -> POST /query HTTP/1.1
  10. -> User-Agent: libcurl/7.29.0 r-curl/3.1 httr/1.3.1
  11. -> Host: xyzhost.com
  12. -> Accept-Encoding: gzip, deflate
  13. -> Cookie: JSESSIONID=long_string; CTPSESSION=long_str //<---missing on Windows
  14. -> Content-Type: application/xml
  15. -> Accept: application/xml
  16. -> Content-Length: 482
Add Comment
Please, Sign In to add comment