Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sometimes http.Send fails

Posted on 2011-02-12
3
Medium Priority
?
243 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
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

782 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