ldelagoutte
4 years agoGuide
Bull API return cvs instead of json
Hi,
I am using Excel VBA, and I wrote the code below
[...]
httpObject.Open "GET", sUrl
httpObject.setRequestHeader "client-id", KHOROS_CLIENT
httpObject.setRequestHeader "Authorization", "Basic " & EncodeBase64(KHOROS_TOKEN & ":")
httpObject.setRequestHeader "Accept", "application/json"
but I got results in CSV.
what is weird, is that in a previous call I used httpObject.setRequestHeader "Accept", "text/csv", and since when it seems that there is a cache mechanism that keeps returning CVS, even if I ask JSON
is my assumption correct ? Is it a bug or a feature ?
Do you know how to 'force' the result to be JSON, and 'forget' the previous CSV results ?