Thanks for your response.
What I am looking for is the possibility to download to my computer a solution from Dynamics365 just like when you press on the export button on the solution in the solution window.
For this I'm struggling to build the POST command and I keep failing, so I thought this opperation has been done before.