http_get does not work with long filenames
Reported by Clement DAVID (@davidcl)
BUG DESCRIPTION:
----------------
When passing a 2nd argument to the http_get() function, it might fail depending on the filename.
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
// work
fname = fullfile(TMPDIR, "COVID.xls");
[result, status] = http_get("https://www.ecdc.europa.eu/sites/default/files/documents/COVID-19-geographic-disbtribution-worldwide-2020-03-11.xls", fname)
// does not work "http_get: Wrong value for input argument #2: The given path does not exist."
fname = fullfile(TMPDIR, "COVID-19-geographic-disbtribution-worldwide-2020-03-11.xls");
[result, status] = http_get("https://www.ecdc.europa.eu/sites/default/files/documents/COVID-19-geographic-disbtribution-worldwide-2020-03-11.xls", fname)
OTHER INFORMATION:
------------------