What is the preferred solution for checking if an URL is relative or absolute?
Not sure what you're asking about. Are you just looking to see if it begins with http:// ? IF so, a simple regex will do the trick.
http://
(EDIT: See comment below -- a very good point!!)