Solved

Sometimes http.Send fails

Posted on 2011-02-12
3
239 Views
Last Modified: 2012-05-11
In the following code:

    http.Open "GET", WebBrowser1.LocationURL, "False"
    http.Send
    Text3 = http.ResponseText

Sometimes "http.Send" fails.  How can I trap this and have http try it again?
0
Comment
Question by:hrolsons
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 500 total points
ID: 34883469
Hi

You can use the .Status property to find out it a Get/Post was successful or not via the HTTP Status Codes.

Here is a list of them.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

HTH

Sid
0
 

Author Comment

by:hrolsons
ID: 34883538
I see what you mean, but would it even get to .Status if .Send fails?
0
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 34883540
Yes :)

Sid
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question