private void writeFormString(OutputStream writer,String key,String value) throws IOException {
  String stringFieldBuilder=startBoundary + "\r\n" + "Content-Disposition: form-data; name=\""+ key+ "\"\r\n"+ "Content-Type: text/plain; charset="+ getParamsEncoding()+ "\r\n\r\n";
  writer.write(stringFieldBuilder.getBytes(getParamsEncoding()));
  writer.write(value.getBytes(getParamsEncoding()));
}

private void writeFormString ( OutputStream writer , String key , String value ) throws IOException { String stringFieldBuilder = startBoundary + "\r\n" + "Content-Disposition: form-data; name=\"" + key + "\"\r\n" + "Content-Type: text/plain; charset=" + getParamsEncoding ( ) + "\r\n\r\n" ; writer . write ( stringFieldBuilder . getBytes ( getParamsEncoding ( ) ) ) ; writer . write ( value . getBytes ( getParamsEncoding ( ) ) ) ; }
send text data in a form .
