Advertisement
Guest User

Casper 8.7.3 API CURL 1/9/13 10:02AM

a guest
Jan 9th, 2014
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. US-MAC-HIRTLE:~ chirtle$ curl -kv -u svc_apiwrite:MyPass https://jss.myorg.com:8443/JSSResource/categories -X GET > /tmp/validreturngoesHerePlease.xml
  2. * Adding handle: conn: 0x7fb6fb003a00
  3. * Adding handle: send: 0
  4. * Adding handle: recv: 0
  5. * Curl_addHandleToPipeline: length: 1
  6. * - Conn 0 (0x7fb6fb003a00) send_pipe: 1, recv_pipe: 0
  7. % Total % Received % Xferd Average Speed Time Time Time Current
  8. Dload Upload Total Spent Left Speed
  9. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to jss.myorg.com port 8443 (#0)
  10. * Trying 10.111.200.117...
  11. * Connected to jss.myorg.com (10.111.200.117) port 8443 (#0)
  12. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* TLS 1.2 connection using TLS_RSA_WITH_AES_128_CBC_SHA
  13. * Server certificate: localhost
  14. * Server auth using Basic with user 'svc_apiwrite'
  15. > GET /JSSResource/categories HTTP/1.1
  16. > Authorization: Basic c3ZjX2FwaXdyaXRlOkNhc3BlcjIwMTQ=
  17. > User-Agent: curl/7.30.0
  18. > Host: jss.myorg.com:8443
  19. > Accept: */*
  20. >
  21. < HTTP/1.1 200 OK
  22. < Date: Thu, 09 Jan 2014 14:11:07 GMT
  23. < Accept-Ranges: bytes
  24. * Server Restlet-Framework/2.0.10 is not blacklisted
  25. < Server: Restlet-Framework/2.0.10
  26. < Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
  27. < Content-Type: application/json;charset=UTF-8
  28. < Transfer-Encoding: chunked
  29. <
  30. { [data not shown]
  31. 100 211 0 211 0 0 728 0 --:--:-- --:--:-- --:--:-- 727
  32. * Connection #0 to host jss.myorg.com left intact
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement