Based on my previous question (How to use 'POST url' to share visualisation in my website?), I think it is better to open a new topic because the question changes to another area.
I sent POST url and get JSON file back. I can find generated reports in 'Management'->'Reporting'. I can get the following url for visualisation which is opened in Chromium browser (http://localhost:5601/api/reporting/jobs/download/jvi1f14j06559d006290mkfc). I wrote the following code to download this file in my local public folder:
File.open('./public/testfile.png', "wb") do |file|
But I cannot open the download file at all. I think it is because the url doesn't have '.pdf' suffix and it is opened in Chromium browser, not Chrome.
The following is the information of reporting in Kibana. The content of reporting file is PNG.I would like to know if there is a way to download/save the content 'PNG/PDF' of this url in my local folder?