如何爲Windows 2003 IIS服務器創建此類代碼?如何從Windows 2003服務器進行遠程安全的Web呼叫ASP
Dim req as New WebClient()
Dim myCache As New CredentialCache()
myCache.Add(New Uri(URL), "Basic", _
New NetworkCredential(Username, Password))
req.Credentials = myCache
Dim results as String
results = System.Encoding.UTF8.GetString(req.DownloadData(URL))
這是因爲你在那裏的代碼看起來更像VB.NET,而不是VBScript。 – Paul 2014-09-10 12:48:57
VBScript是否有類似的解決方案? – Tom 2014-09-11 07:49:38