You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2003/06/05 04:04:07 UTC
DO NOT REPLY [Bug 20481] -
Possible error with PostMethod.generateRequestBody() when using a parameter of the form: select(c)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20481>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20481
Possible error with PostMethod.generateRequestBody() when using a parameter of the form: select(c)
------- Additional Comments From becke@u.washington.edu 2003-06-05 02:04 -------
I believe that PostMethod handles parameters correctly. ( and ) are not reserved characters and
therefore do not need to be encoded. Are you using the addParameter() or
the setRequestBody(NameValuePair[]) methods of PostMethod? If not my guess is that the content
type is not being set correctly. When posting form values the content type should be "application/
x-www-form-urlencoded", which is used when setting the params. If the requestBody is set as a
single string or stream the content type will need to be specified manually. If setting the content
type doesn't fix the problem please post a wire log and some sample code if possible.
http://jakarta.apache.org/commons/httpclient/logging.html