If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Accessing the data from a website using winHttpRequest Object

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-04, 19:14
dupati1 dupati1 is offline
Registered User
 
Join Date: Sep 2003
Posts: 19
Accessing the data from a website using winHttpRequest Object

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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On