Hi, I am trying to download a file from Dropbox which I can get with the Http request:
POST /2/files/download Host: https://content.dropboxapi.com User-Agent: api-explorer-client Authorization: Bearer QfCCK... Dropbox-API-Arg: {"path":"/log.txt"} or the curl request looks like that: curl -X POST https://content.dropboxapi.com/2/files/download \ --header 'Authorization: Bearer QfCCK...' \ --header 'Dropbox-API-Arg: {"path":"/log.txt"}' If I try the following using cli-http in a Clojurescript repl: (go (let [response (<! (http/post "https://content/dropboxapi.com/2/files/download" {:headers {"authorization" "Bearer QfCCK..." "Dropbox-API-Arg" "{\"path\":\"/log.txt\"}"} }))] (println response))) I get #object[*cljs.core.async.impl.channels.ManyToManyChannel*] {:status 0, :success false, :body , :headers {}, :trace-redirects [https://content/dropboxapi.com/2/files/download https://content/dropboxapi.com/2/files/download], :error-code :http-error, :error-text [0]} I cannot figure out where my mistake is. Any help? Johannes -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.