let send cmd =
try
- ignore (Http_client.http_get cmd)
+ ignore (Http_user_agent.get cmd)
with
e -> raise (HttpClientError (Printexc.to_string e, cmd))
;;
let get uri =
try
- Http_client.http_get uri
+ Http_user_agent.get uri
with
e -> raise (HttpClientError (Printexc.to_string e, uri))
;;
(let oc =
open_out (match output with Some f -> f | None -> Filename.basename url)
in
- Http_client.http_get_iter (fun data -> output_string oc data) url;
+ Http_user_agent.get_iter (fun data -> output_string oc data) url;
close_out oc)
| scheme -> (* unsupported scheme *)
failwith ("Http_getter_misc.wget: unsupported scheme: " ^ scheme)
close_in ic;
Some buf
with Unix.Unix_error (Unix.ENOENT, "stat", _) -> None
- end else (* other URL, pass it to Http_client *)
+ end else (* other URL, pass it to Http_user_agent *)
try
- Some (Http_client.http_get url)
+ Some (Http_user_agent.get url)
with e ->
Http_getter_logger.log (sprintf
- "Warning: Http_client failed on url %s with exception: %s"
+ "Warning: Http_user_agent failed on url %s with exception: %s"
url (Printexc.to_string e));
None
let send cmd =
try
- ignore (Http_client.http_get cmd)
+ ignore (Http_user_agent.get cmd)
with
e -> raise (HttpClientError (Printexc.to_string e, cmd))
;;
let get uri =
try
- Http_client.http_get uri
+ Http_user_agent.get uri
with
e -> raise (HttpClientError (Printexc.to_string e, uri))
;;