Check If URL Is Valid
warrenkuhl at gmail.com
Sun Aug 8 11:41:11 CDT 2010
Thanks Colin....this is a great start. Appreciate it!
On Sun, Aug 8, 2010 at 11:37 AM, Colin Holgate <coiin at verizon.net> wrote:
> On Aug 8, 2010, at 12:19 PM, Warren Kuhl wrote:
>> I need to check if a URL is valid and receive notification for invalid
>> URLs. I don't want my program to open any browswers when checking. Is
>> this possible?
> In some cases it is. If the page you try to access doesn't exist, but the server traps for that, then it's harder to tell. Try these in the message box to see the difference:
> put url "http://www.runrev.com/" contains "404 Not Found"
> put url "http://www.runrevvvvvv.com/" contains "404 Not Found"
> put url "http://www.runrev.com/abcdefg.html" contains "404 Not Found"
> The first and third ones show "false", and the middle one "true". Although the third one returns false, the page doesn't really exist, but runrev.com handles that and redirects you to another page.
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode