yeah, if you have SSL enabled and required for your OctoPrint server and you are using a self signed/insecure certificate the "-k" parameter is required. Good input
Thanks
pgoth
davidbitton wrote:I had a small issue with this (cURL error 55) that I was able to resolve by adding -k and using the https address for OctoPrint. Thanks!pgoth wrote:I've solved it fairly easy.. I'm running on S3D on a Mac and I am just calling a curl command as follows:Replace with your own OctoPrint API-key and hostname/IP-address and when you click on the "Save toolpaths to Disk" button it will send the gcode to OctoPrint.Code: Select all
curl -H "X-Api-Key: 185A556C8F684E20AAB85F2D867F2791" -F "select=false" -F "print=false" -F "file=@[output_filepath]" "http://192.168.2.197/api/files/local"
Code: Select all
curl -k -H "X-Api-Key: A5D3DEAF7284412F9563945057BB95F7" -F "select=false" -F "print=false" -F "file=@[output_filepath]" "https://octopi.local/api/files/local"