Here is the command used to get a file
Code: Select all
DownloadFile(fil_dl2$, {File = deltakerfil2$, Fail404 = True, Adapter = "hurl"})
Later in the script I do check for the filesize, and if the filesize is bigger than 1 the script will continue reading the file into a table.
Code: Select all
OpenFile(1, deltakerfil2$, #MODE_READ)
If FileLength(1) > 1
deltakerliste2 = ReadTable(1, {Adapter = "default"})
When using hurl 1.1 the filesize will be below 1 and the readtable command will not be executed.
It might seem that with hurl 1.2 the Fail404 option is ignored in this case, and the file will get some unwanted content anyway.