Changes between Version 20 and Version 21 of Docs/Prog/Manual/DeviceSupport/Network


Ignore:
Timestamp:
09/04/19 10:02:28 (5 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/DeviceSupport/Network

    v20 v21  
    487487rem - Batch file to upload a file from a PC to an 825 using the 825 web server and Windows 10 cURL
    488488set user=ADMIN
    489 set password=81440
     489set password=*****
    490490set ip=10.1.0.179
    491491set filename=C:\testfile5.txt
    492492set dir825=/mnt/nand/apps/
    493493set cookiesfile=%userprofile%\Downloads\cookies825.txt
     494
    494495rem - Login to the 825 web server
    495496curl -v -b %cookiesfile% -c %cookiesfile% "http://%ip%/cgi-bin/index?p=login&a=login" --data "user=%user%&password=%password%"
    496497timeout 5
     498
    497499rem - Set the directory the file will be uploaded to
    498500curl -v -b %cookiesfile% -c %cookiesfile% "http://%ip%/cgi-bin/index?p=filemgr&a=cd&d=%dir825%"
    499501timeout 5
     502
    500503rem - Upload the file
    501504curl -v -b %cookiesfile% -c %cookiesfile% -F file=@%filename% "http://%ip%/cgi-bin/index?p=filemgr&a=new"
     505
    502506}}}
    503507