HttpPassword
HTTP 驗證的密碼。
語法
HTTPObject.HttpPassword
其中:
HttpPassword
是字串(讀/寫)
範例
該指令碼將執行 GET 要求,並列印傳回代碼。 將使用者名稱和密碼設定為 LanGuard
:
Function Main
Dim HTTPObj as Object
ip = "www.gfi.com"
port = 80
Set HTTPobj = HTTP.Connect (ip,port)
'設定要求類型
HTTPobj.GetURL("/")
HTTPobj.HTTPUser = "LanGuard_test"
HTTPobj.HTTPpassword = "LanGuard_test"
'傳送 GET 要求
HTTPResponse = HTTPobj.SendRequest ()
echo HTTPobj.Body
End Function