def handle_key_mgmt_response(url, data, password)
RHC::print_post_data(data)
json_data = RHC::generate_json(data)
response = RHC::http_post(RHC::Config.default_proxy, url, json_data, password)
if response.code == '200'
begin
json_resp = RHC::json_decode(response.body)
RHC::update_server_api_v(json_resp)
RHC::print_response_success(json_resp)
puts "Success"
return
rescue RHC::JsonError
RHC::print_response_err(response)
end
else
RHC::print_response_err(response)
end
puts "Failure"
return response
end