HTTP.setheaders for file download

You specify the filename in the Content-Disposition header. So it should be:

 HTTP.setheader(http, "Content-Disposition" => "attachment; filename=\"results.csv\"");

You might find this helpful:

1 Like