X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fgetter%2FclientHTTP.ml;h=b4e0e26b67e65194375f02749e1aa2de074fad10;hb=6912a028bef118d8e9d7c2847200510a9b055c6a;hp=a7b36982c7d55a5d5edfc4ca8a52dde282a77ce0;hpb=5ce3527a194c90e1c4c9073afbb3863412304048;p=helm.git diff --git a/helm/ocaml/getter/clientHTTP.ml b/helm/ocaml/getter/clientHTTP.ml index a7b36982c..b4e0e26b6 100644 --- a/helm/ocaml/getter/clientHTTP.ml +++ b/helm/ocaml/getter/clientHTTP.ml @@ -27,23 +27,22 @@ exception HttpClientError of string * string;; (* reason, uri *) 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 get_and_save uri dest_filename = - let reply = get uri - and out_channel = open_out dest_filename in - output_string out_channel reply ; - close_out out_channel + let out_channel = open_out dest_filename in + Http_user_agent.get_iter (output_string out_channel) uri; + close_out out_channel ;; let get_and_save_to_tmp uri =