Changes between Version 14 and Version 15 of Docs/Prog/Manual/DeviceSupport/Network


Ignore:
Timestamp:
09/04/19 09:34:24 (5 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v14 v15  
    480480This requires access to an e-mail server that does not require an encrypted connection.
    481481
     482
     483== Batch file to upload a file from a PC to an 825 using the 825 web server and cURL (tested with Windows 10 cURL) ==
     484
     485{{{
     486rem - Batch file to upload a file from a PC to an 825 using the 825 web server and Windows 10 cURL
     487set user=ADMIN
     488set password=81440
     489set ip=10.1.0.179
     490set filename=C:\testfile4.txt
     491rem - Login to the 825 web server
     492curl -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%"
     493timeout 5
     494rem - Set the directory the file will be uploaded to
     495curl -v -b %userprofile%\Downloads\cookies.txt -c %userprofile%\Downloads\cookies.txt "http://%ip%/cgi-bin/index?p=filemgr&a=cd&d=/mnt/nand/apps/"
     496timeout 5
     497rem - Upload the file
     498curl -v -b %userprofile%\Downloads\cookies.txt -c %userprofile%\Downloads\cookies.txt -F file=@%filename% "http://%ip%/cgi-bin/index?p=filemgr&a=new"}}}
     499
    482500[[Top]]