Advertisement
Guest User

Untitled

a guest
Jul 14th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (require '[clj-http.client :as client])
  2.  
  3. (client/get "https://fonoapi.freshpixl.com/v1/getlatest?token=03f8ccb335c22c1721c6f04a92d0e0bc030091e85f4da2c1&brand=apple"  {:accept :json, :insecure? true})
  4. ;; {:cached nil, :request-time 619, :repeatable? false, :protocol-version {:name "HTTP", :major 1, :minor 1}, :streaming? true, :http-client #object[org.apache.http.impl.client.InternalHttpClient 0x980956d "org.apache.http.impl.client.InternalHttpClient@980956d"], :chunked? true, :cookies {"__cfduid" {:discard false, :domain "freshpixl.com", :expires #inst "2019-07-14T13:27:19.000-00:00", :path "/", :secure false, :value "d42f522d4e08147d93bc005689c1d755d1531574839", :version 0}, "laravel_session" {:discard false, :expires #inst "2018-07-14T15:27:20.000-00:00", :path "/", :secure false, :value "eyJpdiI6IkpnOXhja0FXaGxEWDlMeWw2ZTFPZkE9PSIsInZhbHVlIjoiNUtJZ3djMHE5Qk1zYWxiaDVsMlwvcytrZXVFMGpZQ0o3bDltYnpINEV4T2hcL0xCXC9vMXZOeVZlOUVEbVJzVEpLbkFkOXJORkE4QitMdUl3XC9qbzVMSUxRPT0iLCJtYWMiOiIzNzk4MmVlNzU5YTZkMjFjYTU4ZmQ1Y2I5MWUwNjJjOGU2ZmUwYjU1OGMxZWE2Y2FjM2NlZTg3NzBmNDliZGExIn0%3D", :version 0}}, :reason-phrase "OK", :headers {"Access-Control-Allow-Headers" "origin, x-requested-with, content-type", "Server" "cloudflare", "Content-Type" "application/json", "Access-Control-Allow-Origin" "*", "Connection" "close", "Transfer-Encoding" "chunked", "Expect-CT" "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "CF-RAY" "43a4537c4b1b4e4e-DME", "Access-Control-Allow-Methods" "PUT, GET, POST, DELETE, OPTIONS", "Date" "Sat, 14 Jul 2018 13:27:20 GMT", "X-Powered-By" "PHP/7.0.30", "Cache-Control" "no-cache"}, :orig-content-encoding nil, :status 200, :length -1, :body "[{\"DeviceName\":\"Apple iPad 9.7 ...
  5.  
  6. (require '[org.httpkit.client :as http])
  7.  
  8. (http/get "https://fonoapi.freshpixl.com/v1/getlatest?token=03f8ccb335c22c1721c6f04a92d0e0bc030091e85f4da2c1&brand=apple"  {:accept :json, :insecure? true})
  9. ;; #object[org.httpkit.client$deadlock_guard$reify__37653 0x7a6a171f {:status :pending, :val nil}]
  10.  
  11. @*1
  12. ;; {:opts {:accept :json, :insecure? true, :method :get, :url "https://fonoapi.freshpixl.com/v1/getlatest?token=03f8ccb335c22c1721c6f04a92d0e0bc030091e85f4da2c1&brand=apple"}, :error #error {
  13. ;;  :cause "Received fatal alert: handshake_failure"
  14. ;;  :via
  15. ;;  [{:type javax.net.ssl.SSLException
  16. ;;    :message "Received fatal alert: handshake_failure"
  17. ;;    :at [sun.security.ssl.Alerts getSSLException "Alerts.java" 208]}]
  18. ;;  :trace
  19. ;;  [[sun.security.ssl.Alerts getSSLException "Alerts.java" 208]
  20. ;;   [sun.security.ssl.SSLEngineImpl fatal "SSLEngineImpl.java" 1666]
  21. ;;   [sun.security.ssl.SSLEngineImpl fatal "SSLEngineImpl.java" 1634]
  22. ;;   [sun.security.ssl.SSLEngineImpl recvAlert "SSLEngineImpl.java" 1800]
  23. ;;   [sun.security.ssl.SSLEngineImpl readRecord "SSLEngineImpl.java" 1083]
  24. ;;   [sun.security.ssl.SSLEngineImpl readNetRecord "SSLEngineImpl.java" 907]
  25. ;;   [sun.security.ssl.SSLEngineImpl unwrap "SSLEngineImpl.java" 781]
  26. ;;   [javax.net.ssl.SSLEngine unwrap "SSLEngine.java" 624]
  27. ;;   [org.httpkit.client.HttpsRequest doHandshake "HttpsRequest.java" 98]
  28. ;;   [org.httpkit.client.HttpClient doRead "HttpClient.java" 177]
  29. ;;   [org.httpkit.client.HttpClient run "HttpClient.java" 474]
  30. ;;   [java.lang.Thread run "Thread.java" 748]]}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement