let update () =
(* deliver update request to http_getter *)
- if Sys.command ("wget -O /dev/null http://localhost:8081/update") <> 0
- then
- raise PerlGetterNotResponding ;
+ ClientHTTP.send (Configuration.getter_url ^ "update")
;;
(* url_of_uri : uri -> url *)
let xml = "style-configuration.xml" in
let tmp_xml = Configuration.tmp_dir ^ "/" ^ xml in
let request_xml = Configuration.getter_url ^ "getstyleconf?uri=" ^ xml in
- Getter.raw_get request_xml tmp_xml ;
+ ClientHTTP.get_and_save request_xml tmp_xml ;
tmp_xml
exception Warnings;;
let uri = UriManager.string_of_uri uri in
let url = Configuration.getter_url ^ "get?uri=" ^ uri in
let key_list = StyleConfiguration.key_list_of_mode_name mode in
- let string_to_send = Configuration.processor_url ^ "apply?xmluri=" ^ url ^
+ let string_to_send =
+ Configuration.processor_url ^ "apply?xmluri=" ^ url ^
+ "¶m.getterURL=" ^ Configuration.getter_url ^
(List.fold_right
(fun key cmd -> "&key=" ^ key ^ cmd)
key_list