02-10-2014 06:22 AM - edited 02-10-2014 06:24 AM
Hello, i'm trying to delete a file that is stored in my Siemens S7-1200 but it seems like it doesn't work. Here is the thing ;
I would like to be able to delete a file that is located into my Siemens's memory. The link to get to this file is https://192.168.2.156/DataLog.html?FileName=Feuille_Rapport.csv. You need to be logged as admin ( you don't need a password ) to be able to delete the file "manualy" and you've got to accept a SSL certificat before accesing to the "webserver" ( 192.168.2.156 ) of the S7-1200.
I'm not sure that i'm doing that thing right but it seems like i couldn't find any other example of people trying to do the same as me. I'm not even sure that i'm using the correct "code" to get that application done correctly..
If you could give me a piece of advice, I'd appreciate it !
Best regards,
Claude.
02-10-2014 08:42 AM
Have you tried running the same command with CURL or the POSTMAN extension in Chrome?
https://github.com/a85/POSTMan-Chrome-Extension/wiki
02-10-2014 08:53 AM
I can delete them manualy by browsing the "webserver" but i want it to be done by using LabView !
02-10-2014 09:05 AM
I use POSTMAN to build and test the HTTPS commands before coding them in LabVIEW. That way I know the headers and URL are correct, especially when there are authentication headers that need to be set. Once the command works in POSTMAN then it is straight forward to code it in LabVIEW.
02-13-2014 08:05 AM
I've no idea of what you mean by "command". Anybody can help me up on solving my issue?
02-13-2014 08:31 AM
To debug the LabVIEW commands open each of the HTTP VI's while the program is running then carefully inspect the error messages, including the responses from the S7.
To figure out the exact HTTP method and data needed to delete the file from the S7-1200 webserver, I would open Google Chrome,
in Chrome hit ctrl+shift+i to open the inspector,
select the network tab in the inspector,
then in the same Chrome browser window as the inpspector manually use the S7 webserver to delete the file,
the Chrome inspector will now have a history of the HTTP methods and headers needed to delete files off the S7,
use the network tab to recreate the HTTP method, headers and data in LabVIEW
Example Chrome Inspector network info: