0
我正在使用以下代碼並使用此創建一個dll。第一次發送方法很好。從那時起,它給舊值不更新的值MSXML2.xmlHttp發送方法不發送第二次
Dim xmlHttp As MSXML2.xmlHttp
Set xmlHttp = New MSXML2.xmlHttp
Dim response as string
response = xmlHttp.readyState
sUrl = "MyUrl"
xmlHttp.open "GET", sUrl, False
xmlHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
response = xmlHttp.readyState
xmlHttp.send
response = xmlHttp.readyState
response = xmlHttp.responseText
.....
Set xmlHttp = Nothing
感謝 阿莎
也許你應該通讀http://stackoverflow.com/questions/5235464/how-to-make-microsoft-xmlhttprequest-honor-cache-control-directive – Bob77 2011-12-26 18:33:26
你真的每次都重新創建對象嗎? – Deanna 2012-10-02 10:01:07