Request for HTTP header Content-Disposition (optionally) for file download
We implemented this Download feature in our application, that will return a download URL that points to the OSDU download API, but the download behaviour in browsers is not consistent between csv and las files for instance. Some browsers will actually trigger a download, others will open in a new tab. We would like for the user experience to be consistent regardless of the file type.
We had a look at it and it's up to the the platform to add the following http headers to these downloads http response, so that the browser knows it must initiate a file download :
header("Content-Disposition", "attachment; filename=myfilename.myextension");
Maybe we could also think about an extra parameter to the request to let the server know it must add this header.