Add helper function to check services response with curl