in reply to Get valid url

Your definition of "invalid" is incomplete.