public static String encodeParameters(
     List<HttpParameter> httpParams, String splitter, boolean quot) {
   StringBuffer buf = new StringBuffer();
   for (HttpParameter param : httpParams) {
     if (!param.isFile()) {
       if (buf.length() != 0) {
         if (quot) {
           buf.append("\"");
         }
         buf.append(splitter);
       }
       buf.append(encode(param.getName())).append("=");
       if (quot) {
         buf.append("\"");
       }
       buf.append(encode(param.getValue()));
     }
   }
   if (buf.length() != 0) {
     if (quot) {
       buf.append("\"");
     }
   }
   return buf.toString();
 }