debug_print ("Connection from " ^ req#clientAddr);
debug_print ("Received request: " ^ req#path);
(match req#path with
- | "/help" -> return_html_raw Http_getter_const.usage_string outchan
+ | "/help" ->
+ return_html_raw
+ (Http_getter_const.usage_string (Http_getter_env.env_to_string ()))
+ outchan
| "/getxml" | "/getxslt" | "/getdtd" | "/resolve" | "/register" ->
(let uri = req#param "uri" in (* common parameter *)
match req#path with
(* daemon initialization *)
let main () =
- Http_getter_env.dump_env ();
+ print_string (Http_getter_env.env_to_string ());
+ flush stdout;
Unix.putenv "http_proxy" "";
at_exit save_maps;
Sys.catch_break true;