role of HTTP class refactored, Now it makes several download attempts taking doc ended with </html> only. Otherwise throw exception