本帖最后由 q496191478 于 2014-1-1 17:02 编辑
参照帮助写了一段,但没成功,不知道问题出在哪里,还请高手赐教#Include <WinHttp.au3>
Opt('MustDeclareVars ', 1)
$POST=" cnum=3&cmd=$qos_bwl_enable=0%25;$nat_hwmode=0%25;commit";关
;$POST=" cnum=3&cmd=$qos_bwl_enable=1%25;$nat_hwmode=1%25;commit";开
$hOPEN=_WinHttpOpen()
$hCON=_WinHttpConnect($hOPEN,"192.168.0.1")
Global $hRequest = _WinHttpOpenRequest($hCON, _
" GET ", _ ; 动作
" / ", _ ; 对象
Default, _ ; 版本
Default, _ ; 参考
" image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, */* ") ; 接受类型
_WinHttpSetCredentials($hRequest, $WINHTTP_AUTH_TARGET_SERVER, $WINHTTP_AUTH_SCHEME_BASIC, "admin", "admin")
_WinHttpSimpleRequest($hCON,"POST","/cli.cgi","/qos_setting.asp",$POST,"",1)
如果是模拟IE操作的话,我会 |