checkHtmlFile and checkURL