Sometimes http.Send fails

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?
hrolsonsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
SiddharthRoutConnect With a Mentor Commented:
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
 
hrolsonsAuthor Commented:
I see what you mean, but would it even get to .Status if .Send fails?
0
 
SiddharthRoutCommented:
Yes :)

Sid
0
All Courses

From novice to tech pro — start learning today.