clj-http

2021-11-25T22:03:54.002400Z

Hello, I'm trying to download a pdf file via an http request. But for some reason is not working using clj-http. I was able to download the file using javascript, using the following code: axios.get(url, {responseType: 'arraybuffer', responseEncoding: 'binary', headers: { 'Content-Type': 'application/pdf', 'acess_token': token } } How can I do the same thing using clj-http ? Could someone give me some directions ?

jumar 2021-12-06T19:29:54.003600Z

Can you post your code and the error you are getting?

2021-12-06T20:58:38.003800Z

Hi @jumar I found out how to solve using {:as :byte-array} Thanks anyway