Download file without xasid and XASSESSIONID

Hello, i need to download a file from my mendix application, with a command line tool that is very limited. I cannot get the cookies from website, neither i can send them in the request. Is there a way to download a file without those cookies, or a workaround?  
1 answers

Creating a REST Api on the application server, and consuming it with curl or other tools from the command line might be a possible solution.