added set_http_timeout and defined_main_ua