Changes between Version 19 and Version 20 of Docs/Prog/Manual/DeviceSupport/Network
- Timestamp:
- 09/04/19 10:00:37 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/DeviceSupport/Network
v19 v20 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= *****489 set password=81440 490 490 set ip=10.1.0.179 491 set filename=C:\testfile4.txt 491 set filename=C:\testfile5.txt 492 set dir825=/mnt/nand/apps/ 493 set cookiesfile=%userprofile%\Downloads\cookies825.txt 492 494 rem - Login to the 825 web server 493 curl -v -b % userprofile%\Downloads\cookies.txt -c %userprofile%\Downloads\cookies.txt"http://%ip%/cgi-bin/index?p=login&a=login" --data "user=%user%&password=%password%"495 curl -v -b %cookiesfile% -c %cookiesfile% "http://%ip%/cgi-bin/index?p=login&a=login" --data "user=%user%&password=%password%" 494 496 timeout 5 495 497 rem - Set the directory the file will be uploaded to 496 curl -v -b % userprofile%\Downloads\cookies.txt -c %userprofile%\Downloads\cookies.txt "http://%ip%/cgi-bin/index?p=filemgr&a=cd&d=/mnt/nand/apps/"498 curl -v -b %cookiesfile% -c %cookiesfile% "http://%ip%/cgi-bin/index?p=filemgr&a=cd&d=%dir825%" 497 499 timeout 5 498 500 rem - Upload the file 499 curl -v -b %userprofile%\Downloads\cookies.txt -c %userprofile%\Downloads\cookies.txt -F file=@%filename% "http://%ip%/cgi-bin/index?p=filemgr&a=new" 500 501 curl -v -b %cookiesfile% -c %cookiesfile% -F file=@%filename% "http://%ip%/cgi-bin/index?p=filemgr&a=new" 501 502 }}} 502 503