Hi
I'm trying to download a .mobileconfig file from the JSS server with curl. Does someone have a tip how I can do this?
For example I'm trying something like this to download a configuration profile with the name "Standard Profile" from the server:
curl -k -v -u test:test "https://servername.domain.net:8443/int/exportOSXConfigurationProfile.html?profileId=3&filename=Standard%20Profile" -o ~/Desktop/test.mobileconfig
The test.mobileconfig file then contains the text "Your session has expired
If you have just logged in, please ensure that your browser has cookies enabled ".
So at least one problem seems to be the cookie. I also tested with the --cookie-jar and --cookie parameters. So far without success. The command above is just one example of many I have tried.
Thank you.