I would like to download a csv file from a webpage, however when I send the HTTP request the return is Empty(). My code is as follows:
request = New HTTP Request( URL( url), Method( "Get" ), Headers( {"Authorization: Bearer " || token} ));
data = request << send;
I receive the following response header, so I'm confident I am accessing the server:
GetResponseHeaders = ["content-disposition" => "attachment; filename=text.csv", "content-type" => "text/csv; charset=utf-8", "date" => 06Mar2024:17:08:05, "server" => "uvicorn", "transfer-encoding" => "chunked"];
However data is Empty(). I would like to download the text.csv file, but have been unable to find a way to do so in JSL.