Improved web page fetching logic and exception handling support

Added HTTPS support