8/5/2022 3:01 PM | |
Joined: 1/23/2020 Last visit: 10/31/2023 Posts: 31 Rating: (7) |
Hello, because it took me a lot of time and the access to the files stored at S7-1500 memory card via webserver is not similar for all folders I want to share with you all the cURL (https://curl.se/) commands that work for downloading, uploading and deleting files from / to the webserver. (For login I use a wget (https://www.gnu.org/software/wget/) command.) Here they are: Structure of wget / cURL Commands for login to webserver, download, upload, delete files from / to webserver ***Login***
Info: If login is not necessary the wget command is not necessary. Leave the option "-b cookies.txt" out in the following commands in that case. Info: Add option "--no-check-certificate" to the wget command and "--insecure" to the cURL commands if you don't have a secured connection to the webserver. ***Download general (including UserFiles and DataLogs)***
***Download particular for UserFiles***
***Download particular for DataLogs***
***Upload for all except UserFiles and DataLogs***
***Upload particular for UserFiles***
Info: Upload to DataLogs is not supported as far as I know. ***Delete for all except UserFiles and DataLogs***
***Delete from UserFiles***
***Delete from DataLogs***
***List of UserFiles***
***List of DataLogs***
Info: List of other folders than UserFiles and DataLogs is not supported Im looking forward for feedback or. If you know any additional operations to handle the files on the webserver, please let me know. Some options in the commands may be waste. Please let me know if you think that some options are not necessary. Regards! |
This contribution was helpful to6 thankful Users |
Follow us on