Check the content-type of url, get html only if it's text/html