What library are you using to parse 'multipart/form-data'
formatted requests?
We actually have our own classes to parse a multipart/form-data formatted
request. I guess they could be a bit outdated at this point, or possible
never were completely spec compliant themselves. The specification
I'm getting a new exception thrown by the servlet I'm pointing to when I use today's
(Feb. 26th) source for MultipartPostMethod. It complains about a malformed header
line. When I point back to an older version of HttpClient, I don't get this
exception. Any ideas?
Daniel
I'm using a MultipartPostMethod to upload a file to a servlet:
File file = new File(strUrl);
HttpClient client = new HttpClient();
HostConfiguration hostConfig = new HostConfiguration();
MultipartPostMethod mpPost = new MultipartPostMethod();
hostConfig.setHost(someURL.getHost(),
As I mentioned in a previous posting (Subject: MultipartPostMethod Holding File Stream
Open?), I'm using the MultipartPostMethod to upload a file to a servlet. Here is the
example code that I included in the other posting:
File file = new File(strUrl);
HttpClient client = new HttpClient();
Thanks for responding so quickly Martin.
I was under the impression, though, that the implementation that you spoke
of would require an HTML form, or some other type of UI - which my
application does not use. Is that not true?
Daniel
The usual mechanism for uploading files is to use the POST