Dim $postdata="username_value=admin&password_value=0081"
Global $login_url="http://192.168.1.60/generalconfig5.htm"
Global $url="http://192.168.1.60/restart_exec.htm"
Global $oHTTP= ObjCreate("WinHttp.WinHttpRequest.5.1")
;$oHTTP.SetProxy('2',"http://192.168.3.149:8848","")
$oHTTP.Open("POST",$login_url,False)
$oHTTP.setRequestHeader('Content-Type','application/x-www-form-urlencoded')
$oHTTP.setRequestHeader("User-Agent","Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko")
;_WinHttpAddRequestHeaders($request1,"")
$oHTTP.Send($postdata)
$oHTTP.Open("GET",$url)
$oHTTP.setRequestHeader("User-Agent","Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko")
$oHTTP.Send()
ConsoleWrite($oHTTP.ResponseText)
发一个我之前重启固网打印服务器的脚本, |