Advertisement
Guest User

Untitled

a guest
Jan 31st, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. library(httr)
  2. httr::set_config(config( ssl_verifypeer = 0L))
  3. httr::set_config(config( ssl_verifyhost = 0L))
  4. GET(url, authenticate(user = "user", password = "", type = "gssnegotiate"), verbose = TRUE)
  5.  
  6. -> GET /api/v1/Dimensions('Time')/Hierarchies('Time')/Subsets('Yesterday')/Elements HTTP/1.1
  7. -> Host: myhostaddress.com:20049
  8. -> User-Agent: libcurl/7.47.1 r-curl/1.2 httr/1.2.1
  9. -> Accept-Encoding: gzip, deflate
  10. -> Cookie: TM1SessionId=tbQcdXh4PsIHUQdkW_UyNQ
  11. -> Accept: application/json, text/xml, application/xml, */*
  12. ->
  13. <- HTTP/1.1 401 Unauthorized
  14. <- Content-Type: text/plain
  15. <- Content-Length: 0
  16. <- Connection: keep-alive
  17. <- OData-Version: 4.0
  18. <- WWW-Authenticate: Kerberos
  19. <-
  20. * Connection #0 to host myhostaddress.com left intact
  21.  
  22. library(RCurl)
  23. getURL(url, user = "username", userpwd="", httpauth = 4, verbose = TRUE, ssl.verifypeer = FALSE, ssl.verifyhost = FALSE)
  24.  
  25. < HTTP/1.1 401 Unauthorized
  26. < Content-Type: text/plain
  27. < Content-Length: 0
  28. < Connection: keep-alive
  29. < OData-Version: 4.0
  30. < Set-Cookie: TM1SessionId=WMSrJHGTps0RIbmjCCaW5w; Path=/api/; HttpOnly; Secure
  31. < WWW-Authenticate: Kerberos
  32. < WWW-Authenticate: Basic realm="TM1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement