It would help if you can post samples of the downloaded html file, clearly describing what you intended to do, and what's the problem that you want solved.