Re: downloading of files from Dropbox using cli-http

2018-06-26 Thread Johannes
Yes, there was an authorisation problem, I have to include :with-credentials? false. Additionally the "Content-Type" has to be specified in the headers. The following call works now: (go (let [response (https://content.dropboxapi.com/2/files/download"; {:with-cre

Re: downloading of files from Dropbox using cli-http

2018-06-26 Thread Immo Heikkinen
Have you checked JS console in your browser, does is show any errors? Br, Immo ti 26. kesäk. 2018 klo 13.36 Johannes kirjoitti: > Thanks Immo, what a silly mistake! > > But after having corrected it, I get the same result as before: > > (go (let [response ( https://content.dropboxapi.com/2/file

Re: downloading of files from Dropbox using cli-http

2018-06-26 Thread Johannes
Thanks Immo, what a silly mistake! But after having corrected it, I get the same result as before: (go (let [response (https://content.dropboxapi.com/2/files/download"; {:headers {"authorization" "Bearer QfCCK..." "Dr

Re: downloading of files from Dropbox using cli-http

2018-06-26 Thread Immo Heikkinen
You have slash instead of dot after "content" in the url: " https://content/dropboxapi.com/2/files/download"; Br, Immo ti 26. kesäk. 2018 klo 10.38 Thomas kirjoitti: > I have no idea what could be wrong here... sorry. > > Thomas > > On Monday, 25 June 2018 14:38:12 UTC+2, Johannes wrote: > >>

Re: downloading of files from Dropbox using cli-http

2018-06-26 Thread Thomas
I have no idea what could be wrong here... sorry. Thomas On Monday, 25 June 2018 14:38:12 UTC+2, Johannes wrote: > > 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-exp

Re: downloading of files from Dropbox using cli-http

2018-06-25 Thread Johannes
That's the result: curl -vX POST https://content.dropboxapi.com/2/files/download --header 'Authorization: Bearer QfCCK...' --header 'Dropbox-API-Arg: {"path":"/log.txt"}'>x.txt % Total% Received % Xferd Average Speed TimeTime Time Current

Re: downloading of files from Dropbox using cli-http

2018-06-25 Thread Thomas
try and do a curl -v and see what it really does under the covers as there might be a redirect Good luck, Thomas On Monday, 25 June 2018 14:38:12 UTC+2, Johannes wrote: > > Hi, > > I am trying to download a file from Dropbox which I can get with the Http > request: > > POST /2/files/download Ho

downloading of files from Dropbox using cli-http

2018-06-25 Thread Johannes
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