| |
qin
Posts: 3
Score: 0
Joined: 8/7/2003
From:
Status: offline
|
sorry, first timer, don't know how to post source code. strPath = "http://localhost/myDir/" strPage = "login.aspx" strRequest = "username=admin&password=admin" set objHTTP = CreateObject("Microsoft.XMLHTTP") With objHTTP .open "POST", strPath & strPage, False .send strRequest strCookie = .getResponseHeader("Set-Cookie") temp = .responseText WScript.echo(temp) End With Set objHTTP = Nothing strPage = "Home.aspx" set objHTTP = CreateObject("Microsoft.XMLHTTP") With objHTTP .open "GET", strPath & strPage, False .setRequestHeader "Cookie", strCookie .send temp2 = .responseText WScript.echo(temp2) End With Set objHTTP = Nothing
|
|