I've been experimenting with both ServerObjects' AspHTTP and Microsoft's ServerXMLHTTP to access IMail. They both work fine, except for one weird thing.
To log in to IMail via login.cgi, it takes ServerXMLHTTP about 30 seconds. It takes AspHTTP about 1 second. Accessing any other IMail page, the two are virtually identical. But the login page is unacceptably long for ServerXMLHTTP.
Here's the code I'm using:
' Post login info to login page
Set HttpObj = Server.CreateObject("MSXML2.ServerXMLHTTP")
HttpObj.Open "POST", "http://mail." & Domain & "/login.cgi", False
'Response.Write now & "<br />"
HTTPObj.Send "page=login&userid=" & User & "&passwd=" & Password
'Response.Write now & "<br />"
strResult = HttpObj.ResponseText
It's not because it's the first time creating the object. If I run the .Send twice, it takes 30 seconds each time.
Any idea why ServerXMLHTTP would be so slow on this one page?
(More info about ServerXMLHTTP
here)
Charlie