do_curl () function added.