Solved

A question about the internet transfer control.

Posted on 1998-11-06
3
144 Views
Last Modified: 2010-04-30
Is there and easy way to determin if a url is bad without sorting throught it's source?
0
Comment
Question by:hess
3 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1443639
How do you mean is bad. You mean that the syntax is correct or something.
0
 

Author Comment

by:hess
ID: 1443640
error 404
0
 
LVL 1

Accepted Solution

by:
soeding earned 50 total points
ID: 1443641
Dim txt$
Dim pos%

Inet1.OpenURL("myURL", 1)
txt = Inet1.GetHeader()

' Headers like "HTTP/1.1 Error 404" are always in the first line:
pos = Instr(1, txt, vbCrLf)
txt = Mid(txt, 1, pos-1)

If Instr(1, txt, "404") > 0 Then
    ' Error 404
End If


0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now