code: def serverinfo(url='http://localhost:8080/manager', timeout=180):
      '''
      return details about the server
  
      url : http://localhost:8080/manager
          the URL of the server manager webapp
      timeout : 180
          timeout for HTTP request
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt '*' tomcat.serverinfo
          salt '*' tomcat.serverinfo http://localhost:8080/manager
      '''
  
      data = _wget('serverinfo', {}, url, timeout=timeout)
      if data['res'] is False:
          return {'error': data['msg']}
  
      ret = {}
      data['msg'].pop(0)
      for line in data['msg']:
          tmp = line.split(':')
          ret[tmp[0].strip()] = tmp[1].strip()
  
      return ref serverinfo(url='http://localhost:8080/manager', timeout=180):
      '''
      return details about the server
  
      url : http://localhost:8080/manager
          the URL of the server manager webapp
      timeout : 180
          timeout for HTTP request
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt '*' tomcat.serverinfo
          salt '*' tomcat.serverinfo http://localhost:8080/manager
      '''
  
      data = _wget('serverinfo', {}, url, timeout=timeout)
      if data['res'] is False:
          return {'error': data['msg']}
  
      ret = {}
      data['msg'].pop(0)
      for line in data['msg']:
          tmp = line.split(':')
          ret[tmp[0].strip()] = tmp[1].strip()
  
      return ret
docs: return details about the server
  
      url : http://localhost:8080/manager
          the URL of the server manager webapp
      timeout : 180
          timeout for HTTP request
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt '*' tomcat.serverinfo
          salt '*' tomcat.serverinfo http://localhost:8080/manager