Hi All,
i have this below code:
<%
Option Explicit
Dim objWinHttp
Dim strHTML
Set objWinHttp = Server.CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttp.Open "GET", "http://XXX.XXX.XXX.XXX/smartpay/HIGH/SUB0912D.XLS"
objWinHttp.SetCredentials "myusername", "mypassword", 1
objWinHttp.Send
Response.Write "Status: " & objWinHttp.Status & " " _
& objWinHttp.StatusText & "<br />"
strHTML = objWinHttp.ResponseText
Set objWinHttp = Nothing
Response.Write Server.HTMLEncode(strHTML)
%>
As a first step i am trying to connect to the website first...once i get connected without any problem then i want to retrieve data.
Now i am stuck with this error:
WinHttp.WinHttpRequest error '80072ee2'
The operation timed out
Do i need to increase the script execution time or should i change anything else in my code.
Thanks in advance