Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if URL exists
Message
 
To
28/12/2005 15:46:21
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01081183
Message ID:
01081459
Views:
8
>>>>Hello,
>>>>
>>>>Does anyone knows how to check if an entered URL exists ?
>>>>
>>>>Thanks...
>>>
>>>Here is my InternetOK function, I guess you can use it if you change the URL
>>>Function InternetOK
>>>#define FLAG_ICC_FORCE_CONNECTION 0x01
>>>
>>>DECLARE INTEGER InternetCheckConnection IN wininet STRING lpszUrlSTRING, INTEGER dwFlags, INTEGER dwReserved
>>>myFastLoadedSite = "http://www.dir.bg"
>>>Return InternetCheckConnection(myFastLoadedSite,FLAG_ICC_FORCE_CONNECTION,0)=1
>>>
>>
>>What condition would this function return True even when the URL invalid? I tested it, and is returning True on non-existing URLs.
>
>That's really odd, because for me it works perfectly, I just tried a lot of different URLs.

Tore,
See message#1081375
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform