htmlview : check url

BlitzPlus Forums/BlitzPlus Programming/htmlview : check url

hub(Posted 2003) [#1]
Hi !

i'm searching a solution to detect if an url exists before display the page into the htmlview with HTMLViewGo

Thanks !


Kevin_(Posted 2003) [#2]
I wrote a function a while ago to do just that. Its in the code archives under networking, 'Web Page Exist?'.

Regards


Ice9(Posted 2003) [#3]
I don't have blitz plus but if you don't receive a properly formatted page within a certain number of milliseconds I think you could say it doesn't exist or the host is unreachable. Most webservers will return an error if an url doesn't exist on them and you either show thier page generated by the error or show your own. You could read the data coming in for <HTML><HEAD> tags to see if it is a valid page