Feature request for 10.0.6, error exceptions for get-url
Posted: Wed May 13, 2009 4:48 pm
Can you change get-url and related functions so that instead of returning a string containing "ERR: ..." on an error, just throw an error that can be caught, similar to what is done with invalid list references?
As it is right now, I came across two different errors last night when running a site-scraper, but I don't feel comfortable with checking the output for a specific error string. 1) what if the file I'm fetching contains that error string? 2) I don't know in advance what all the possible error strings are. I came across two last night (connected failed, and server refused connection). How many more are there? What if hostname lookup failed?
As it is right now, I came across two different errors last night when running a site-scraper, but I don't feel comfortable with checking the output for a specific error string. 1) what if the file I'm fetching contains that error string? 2) I don't know in advance what all the possible error strings are. I came across two last night (connected failed, and server refused connection). How many more are there? What if hostname lookup failed?