hth I needed a simple script that would make a HEAD request for a certain URL, and then make a new HEAD request if the result was a redirect, etc. See my blog for more info.