Changes between Version 28 and Version 29 of Docs/Prog/Manual/DeviceSupport/Network


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

--

Legend:

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

    v28 v29  
    511511}}}
    512512
     513== Batch file to download a file from an 825 to a PC using the 825 web server and cURL (tested with Windows 10) ==
     514
     515{{{
     516rem - rcv825file.bat Batch file to download a file from an 825 to a PC using the 825 web server and Windows 10 cURL
     517rem - usage:   rcv825file.bat ipaddr filename tofile user password
     518rem - example: rcv825file.bat 10.1.0.179 /mnt/nand/apps/ testfile6.txt C:\tstfile.txt ADMIN *****
     519rem - CAUTION: make sure 825 path has trailing slash
     520set ip=%1
     521set dir825=%2
     522set filename=%3
     523set topath=%4
     524set user=%5
     525set password=%6
     526set cookiesfile=%userprofile%\Downloads\cookies825.txt
     527
     528rem - Login to the 825 web server
     529curl -v -b %cookiesfile% -c %cookiesfile% "http://%ip%/cgi-bin/index?p=login&a=login" --data "user=%user%&password=%password%"
     530timeout 5
     531
     532rem - Set the directory the file will be uploaded to
     533curl -v -b %cookiesfile% -c %cookiesfile% "http://%ip%/cgi-bin/index?p=filemgr&a=cd&d=%dir825%"
     534timeout 5
     535
     536rem - Download the file
     537curl -v -b %cookiesfile% -c %cookiesfile% -o %topath% "http://%ip%/cgi-bin/index?p=filemgr&a=dl&n=%filename%"
     538}}}
     539
    513540[[Top]]