Open goldsoft8888 opened 3 weeks ago
C:\Windows\System32>curl --connect-timeout 30 --max-time 60 -c cookies.txt -H "Content-Type: application/json" -X POST -d '{"username":"admin","password":"admin"}' -v http://xxx.com:12345/login Note: Unnecessary use of -X or --request, POST is already inferred.
POST /login HTTP/1.1 Host: xxx.com:12345 User-Agent: curl/8.4.0 Accept: / Content-Type: application/json Content-Length: 33
< HTTP/1.1 400 Bad Request < Content-Type: application/json; charset=UTF-8 < Date: Thu, 06 Jun 2024 15:12:52 GMT < Content-Length: 43 < {"status":false,"message":"Bad post data"}
How can clients automatically download or synchronize wg0.conf from a remote server, especially when multiple clients are unattended and need to accomplish this task automatically? Please assist me.