public HttpRequest form(final Object name, final Object value, String charset)
      throws HttpRequestException {
    final boolean first = !form;
    if (first) {
      contentType(CONTENT_TYPE_FORM, charset);
      form = true;
    }
    charset = getValidCharset(charset);
    try {
      openOutput();
      if (!first)
        output.write('&');
      output.write(URLEncoder.encode(name.toString(), charset));
      output.write('=');
      if (value != null)
        output.write(URLEncoder.encode(value.toString(), charset));
    } catch (IOException e) {
      throw new HttpRequestException(e);
    }
    return this;
  }
Write the name/value pair as form data to the request body
<p>
The values specified will be URL-encoded and sent with the
'application/x-www-form-urlencoded' content-type

@param name
@param value
@param charset
@return this request
@throws HttpRequestException
lib/src/main/java/com/github/kevinsawicki/http/HttpRequest.java