public void addFormField ( String name , String value ) { mWriter . append ( "--" + mBoundary ) . append ( LINE_FEED ) ; mWriter . append ( "Content-Disposition: form-data; name=\"" + name + "\"" ) . append ( LINE_FEED ) ; mWriter . append ( "Content-Type: text/plain; charset=" + mCharset ) . append ( LINE_FEED ) ; mWriter . append ( LINE_FEED ) ; mWriter . append ( value ) . append ( LINE_FEED ) ; mWriter . flush ( ) ; }
Adds a form field to the request