]> matita.cs.unibo.it Git - helm.git/commitdiff
removed dependency on netclient, use http_client module from ocaml-http
authorStefano Zacchiroli <zack@upsilon.cc>
Tue, 16 Dec 2003 17:00:48 +0000 (17:00 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Tue, 16 Dec 2003 17:00:48 +0000 (17:00 +0000)
helm/http_getter/.depend
helm/http_getter/Makefile
helm/http_getter/http_getter_misc.ml

index 1eb5ba8cecb7100422b1bc7c0a1c1ddf02aea034..9e048f6a9b80cc0ba8ae0a671005f4d2d6b9181e 100644 (file)
@@ -1,3 +1,9 @@
+http_getter_cache.cmo: http_getter_common.cmi http_getter_debugger.cmi \
+    http_getter_env.cmi http_getter_misc.cmi http_getter_types.cmo \
+    threadSafe.cmi http_getter_cache.cmi 
+http_getter_cache.cmx: http_getter_common.cmx http_getter_debugger.cmx \
+    http_getter_env.cmx http_getter_misc.cmx http_getter_types.cmx \
+    threadSafe.cmx http_getter_cache.cmi 
 http_getter_common.cmo: http_getter_env.cmi http_getter_misc.cmi \
     http_getter_types.cmo http_getter_common.cmi 
 http_getter_common.cmx: http_getter_env.cmx http_getter_misc.cmx \
@@ -17,7 +23,7 @@ http_getter_misc.cmx: http_getter_debugger.cmx zack.cmx http_getter_misc.cmi
 http_getter.cmo: http_getter_cache.cmi http_getter_common.cmi \
     http_getter_const.cmi http_getter_debugger.cmi http_getter_env.cmi \
     http_getter_map.cmi http_getter_misc.cmi http_getter_types.cmo 
-http_getter.cmx: http_getter_cache.cmi http_getter_common.cmx \
+http_getter.cmx: http_getter_cache.cmx http_getter_common.cmx \
     http_getter_const.cmx http_getter_debugger.cmx http_getter_env.cmx \
     http_getter_map.cmx http_getter_misc.cmx http_getter_types.cmx 
 threadSafe.cmo: http_getter_debugger.cmi threadSafe.cmi 
index af2763b98adeabdb2a69846d985a7a6af989bb95..e6731ae03f8ded0419381fbbb02d23f936d8649f 100644 (file)
@@ -1,11 +1,11 @@
-VERSION = 0.2.1
+VERSION = 0.2.2
 NAME = http_getter
 
 DISTDIR = http-getter-$(VERSION)
 EXTRA_DIST = AUTHORS COPYING NEWS README BUGS
 DOCS = doc/http_getter.conf.xml.sample
 
-REQUIRES = http dbm pcre netclient pxp shell threads zip
+REQUIRES = http dbm pcre pxp shell threads zip
 COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
 OCAMLFIND = ocamlfind
 OCAMLC = $(OCAMLFIND) ocamlc -thread $(COMMONOPTS)
index 922edc5609537e015ae11840f588fd9f2c1086ec..a2685ca9ae09369e193d2909129ff2999295e807 100644 (file)
@@ -227,8 +227,11 @@ let http_get url =
     with Unix.Unix_error (Unix.ENOENT, "stat", _) -> None
   end else  (* other URL, pass it to netclient *)
     try
-      Some (Http_client.Convenience.http_get url)
-    with Http_client.Http_error (code, _) -> None
+      Some (Http_client.http_get url)
+    with e ->
+      prerr_endline (sprintf "Warning: Http_client failed with exception: %s"
+        (Printexc.to_string e));
+      None
 
   (** apply a transformation "string list -> string list" to file lines *)
 let mangle_file ~fname f =