commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waldhoff, Rodney" <rwald...@us.britannica.com>
Subject RE: [httpclient] PostMethod.setRequestBody (was RE: HttpClient Po st)
Date Wed, 24 Apr 2002 15:26:14 GMT
I just committed changes along these lines:

/**
 * @throws IllegalStateException if request params have been added
 */
public void setRequestBody(String body) {
   if(!parameters.isEmpty()) {
      throw new IllegalStateException("Request parameters have already been
added.");
   }
   requestBody = body;
}

There's no InputStream/Reader/byte[] support, if someone feels like adding
it.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message