With classic asp file I get time out error in using Msxml2.ServerXMLHTTP.6.0. But its works very well with any other file types (like aspx, php, xml, json). Why classic asp get stuck with the (get) request?
Dim oHttp Set oHttp = Server.CreateObject ("Msxml2.ServerXMLHTTP.6.0") ' THIS WORKS oHttp.open "GET","http://localhost:82/test.aspx", false ' BUT THIS DOES NOT WORK - oHttp.open "GET","http://localhost:82/test.asp", false oHttp.setRequestHeader "Content-Type", "application/json; charset=utf-8" oHttp.send() While (oHttp.readyState <> 4) oHttp.waitForResponse() Response.write (oHttp.responseText ) Wend I am using IIS 10.
https://stackoverflow.com/questions/65572284/msxml2-serverxmlhttp-6-0-does-not-work-classic-asp-file-in-get-request January 05, 2021 at 10:06AM
没有评论:
发表评论