+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 \
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
-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)
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 =