I needed to get some xlsm files from a web page which has login and password.
To get there, I found the auth cookie in my web browser, and used HTTP.get function as follows:
r = HTTP.get(url_file; cookies=Dict("FedAuth" => auth_cookie))
Once, I got the result, I would like to write it. I tried with the write function, and all sort of formats: .xlsx, xls, xlsm, csv, like the exemple:
write("dados_bdo.xlsm",r.body)
The file was written, and i was able to open it with libreoffice, however, when I try to read with Julia, using CSV.read, or XLSX.readxlsx I get errors.
> XLSX.readxlsx("dados_bdo.xlsx")
ERROR: AssertionError: isempty(XML_GLOBAL_ERROR_STACK)
> CSV.read("dados_bdo.csv")
ERROR: ArgumentError: Symbol name may not contain \0
The typeof(r.body) is Array{UInt8,1}.
I really think the problem is in the writing part, but I don't know how to do in any other way.