code: private String toCookieStr(Cookie[] cookies) {
      String cookieStr = "";
  
      for (Cookie c : cookies) {
       cookieStr += c.getName() + "=" + c.getValue() + " ;\n";
      }
      return cookieStr;
    }
docs: Convert cookie array to human readable cookie string
  @param cookies Cookie Array
  @return String containing all the cookies separated by a newline character.
  Each cookie is of the format [key]=[value]