refactored curl_http and added read_html
this allows to read html from a file