Is there a way to have URL timeout at some point after a request? I am writing a program that may point to URL’s that may or may not respond, so this would be a useful feature. Right now if a URL doesn’t respond my program just waits, forever.
If there isn’t a timeout feature, can one be added? I think that in Java a timeout triggers an exception that can be caught in a try-catch statement. It would be nice to have something like that.