Changes between Version 20 and Version 21 of Docs/Prog/Manual/DeviceSupport/Network
- Timestamp:
- 09/04/19 10:02:28 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/DeviceSupport/Network
v20 v21 487 487 rem - Batch file to upload a file from a PC to an 825 using the 825 web server and Windows 10 cURL 488 488 set user=ADMIN 489 set password= 81440489 set password=***** 490 490 set ip=10.1.0.179 491 491 set filename=C:\testfile5.txt 492 492 set dir825=/mnt/nand/apps/ 493 493 set cookiesfile=%userprofile%\Downloads\cookies825.txt 494 494 495 rem - Login to the 825 web server 495 496 curl -v -b %cookiesfile% -c %cookiesfile% "http://%ip%/cgi-bin/index?p=login&a=login" --data "user=%user%&password=%password%" 496 497 timeout 5 498 497 499 rem - Set the directory the file will be uploaded to 498 500 curl -v -b %cookiesfile% -c %cookiesfile% "http://%ip%/cgi-bin/index?p=filemgr&a=cd&d=%dir825%" 499 501 timeout 5 502 500 503 rem - Upload the file 501 504 curl -v -b %cookiesfile% -c %cookiesfile% -F file=@%filename% "http://%ip%/cgi-bin/index?p=filemgr&a=new" 505 502 506 }}} 503 507