【问题标题】:How to run wget from Windows 8.1 to reboot TP Link router如何从 Windows 8.1 运行 wget 以重新启动 TP Link 路由器
【发布时间】:2017-08-24 14:03:33
【问题描述】:

我需要运行以下行,但我不知道该怎么做。请帮忙。

代码如下:

wget -q0 --user=User --password=Pass \ 
     http://192.168.1.1/userRpm/SysReboot.htm?Reboot=Reboot > /dev/null

操作系统:Windows 8.1

谢谢。

【问题讨论】:

    标签: windows windows-8 windows-8.1 wget router


    【解决方案1】:

    你需要 Windows 的 Wget,你可以从这里下载它http://gnuwin32.sourceforge.net/packages/wget.htm

    打开记事本并粘贴代码,另存为“myscript.bat”

    确保它没有 .txt

    将您的“myscript.bat”与 wget.exe 放在同一个文件夹中 现在试试看,应该可以了

    【讨论】:

      【解决方案2】:

      对于更新的固件版本,你需要添加referer和user-agent。试试这个,为我工作:

      wget -qO- --user=admin --password=admin --referer http://192.168.0.1 --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0" http://192.168.0.1/userRpm/SysRebootRpm.htm?Reboot=Reboot
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-03-01
        • 2018-05-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-02-26
        • 1970-01-01
        相关资源
        最近更新 更多