anchor.diff:      http:request(get, {Url, [{"Authorization",
                                 "Basic " ++ UserPassword}]}, [], []).
   
  -% ------------------------------------------------
  -
   rest_get_json(Url, Auth) ->
       inets:start(),
       {ok, Result} = menelaus_rest:rest_get(Url, Auth),
  
positive.code:         200 -> {ok, mochijson2:decode(Body)};
          _   -> {error, Result}
      end.
  
  rest_get_otp(Host, Port, Auth) ->
      {ok, {struct, KVList}} =
  
negative.code: -module(menelaus_rest).
  -author('Northscale <info@northscale.com>').
  
  %% API
  
  -export([rest_url/3, rest_get/2, rest_get_json/2, rest_get_otp/3]).
  
  rest_url(Host, Port, Path) ->
      "http://" ++ Host ++ ":" ++ Port ++ Path.
  