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 [EMAIL PROTECTED]  2003-06-05 08:47 -------
Ortwin and Michael

First to clear things up (sorry that I wasn't clear before). I have built a 
Struts based web application with a input form that posts information to a 
Struts 'form' that uses a map based attribute, hence the need for an input with 
the format selected(c).

When I access this web application directly everything works. When I use 
HttpClient to access the form (I am building a mini portlet) my application 
hangs and timesout. I turned on the Struts debugging and found that it failed 
when it was trying to read the request parameters using the request.getParameter 
calls. It was then that I (after lots of other tinkering) looked directly at the 
input stream (which of course is wrong) to see if there was a low level 
difference. This is when I noticed that from the browser I received selected%
28c%29 and from HttpClient I received selected(c). Hence the possible bug.

With regard to your information Michael I am 'screen scraping' to do my portal, 
re-writing the URLs etc. to get the effect I want. What I do is copy the headers 
over, adjusting the Content-Length if necessary and sending this to my back end 
Struts application. Again I'm not sure if this is very valid but I manage to 
keep the sesison etc and it seems to work everywhere else. I do use the 
setRequestBody(NameValuePair[]) method to reset the input parameters I get into 
the PostMethod. I have attached the request headers I set as well...

request name=Accept, header=image/gif
request name=Accept, header=image/x-xbitmap
request name=Accept, header=image/jpeg
request name=Accept, header=image/pjpeg
request name=Accept, header=application/vnd.ms-powerpoint
request name=Accept, header=application/vnd.ms-excel
request name=Accept, header=application/msword
request name=Accept, header=application/x-shockwave-flash
request name=Accept, header=*/*
request name=Referer, header=http://localhost:
8080/portal/search/advanced/display.do;JSESSIONID=1vm3jdykwh0a8
request name=Accept-Language, header=en-gb
request name=Content-Type, header=application/x-www-form-urlencoded
request name=Accept-Encoding, header=gzip
request name=Accept-Encoding, header=deflate
request name=User-Agent, header=Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.
0)
request name=Host, header=localhost:8080

And I can see in there encoding header you mention.

If you can't think of anything else for me to try straight away I will build two 
small web apps that do what I am trying and will attach them.

Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to