这个是Get的应用
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET","http://www.AutoItScript.com")
$oHTTP.Send()
$HTMLSource = $oHTTP.Responsetext
这个是post的应用
$oHTTP = ObjCreate("microsoft.xmlhttp")
$oHTTP.Open("post","http://www1.thmz.com/2008/beautiful/tpsubmit.asp",false)
$oHTTP.setRequestHeader("Cache-Control", "no-cache")
$oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.setRequestHeader("Referer","http://www1.thmz.com/2008/beautiful/index.asp?page=7")
$oHTTP.Send("UserName=****&UserPass=****&CookieDate=30&tid=14")
摘录记下来。 |