I have been playing with a script to effectively write my own PAN user agent for a rather specific reason.
I can confirm that my script generates a valid xml script and I can post it via the api browser and see that the IP address and new username correlate.
The bit where I get stuck is getting cURL to post the the xml file to the api. I am using the following command:
curl --insecure --form email@example.com "https://192.168.1.1/api/?type=user-id&action=set&key=INSERT-KEY-HERE"
and receive the following error back:
<response status = 'error' code = '400'><result><msg>No file uploaded</msg></result></response>
any help would be much appreciated thanks!
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!