|
here is a patch that worked !!!
String boundaryString; We are using a User-Agent that sends request like:
- --boundaryoazJlhY= a first line - Note the quotes on the value for the boundary in the Content-Type field. I have made these code changes, they work for us: -
InputStream input = req.getInputStream(); I'm not an expert on the related RFCs, but check the "WARNING TO IMPLEMENTORS" I hope this makes sense. Created an attachment (id=8950)
[PATCH] removing the boundary quotes Jan: Note that String.getBytes() uses the system default encoding, which is
hardly correct outside western locales. Should probably use "US-ASCII" or "ISO-8859-1". But, as i said earlier, it would probably be better to use Oleg's ParameterParser (COM-643 / attachment 8205) consistently in commons fileupload. Fixed in the 10/11/04 nightly build.
I followed Christoffer's suggestion and used ParameterParser.
Henri Yandell made changes - 16/May/06 09:31 AM
Henri Yandell made changes - 16/May/06 11:35 AM
Henri Yandell made changes - 16/May/06 12:38 PM
Henri Yandell made changes - 09/Mar/07 08:31 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
to parse the boundary-parameter of the content-type-header.