HttpUser

HTTP 驗證的使用者名稱。

語法

HTTPObject.HttpUser

其中:

  • HttpUser 是字串(讀/寫)
範例

該指令碼將執行 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