1、关闭Excel,就是关闭xmlhttp对象。
2、 post 不会从缓存读取。
3、 查看一下协议里面的response . status, readystate 等响应代码和理解代码的含义。比如301, 407等。具体如下例:
If http.Status <> 200 Then
MsgBox "readyState: " & http.readyState & vbCrLf & "Status: " & http.Status
Set http = Nothing
MsgBox "请检查网络状况!", 0 + 64, "网络故障!"
ExitAll = True
Exit Sub
End If
温馨提示:答案为网友推荐,仅供参考