Open GoogleCodeExporter opened 8 years ago
I'm not sure this is possible with the API I'm using. I'll have to research
this.
Original comment by alexmilo...@gmail.com
on 16 Feb 2010 at 5:15
I've got sending an empty multipart/form-data with the extension, but when
putting
content it always fail.
Content-Type:multipart/form-data; boundary=aaaa
Content: --aaaa--
And works fine. Once i put a content like:
--aaaa
Content-Disposition: form-data; name="Test.txt"; filename="Test.txt"
Content-Type: text/plain
asdfaesfasdf adsf asdf asdf asdf
--aaaa--
Fails.
Original comment by useyour....@gmail.com
on 14 May 2010 at 7:59
I sent a file with multipart/form-data without a problem.
Fill the Content-Type field with:
multipart/form-data; boundary=AaB03x
In the textarea you have to insert:
--AaB03x
Content-Disposition: form-data; name="files";
filename="filename.txt"
Content-Type: text/xml
...file content...
--AaB03x--
Original comment by crea...@mindcreations.com
on 3 Feb 2011 at 5:06
Great! I'll try that!
Original comment by reywil...@gmail.com
on 3 Feb 2011 at 5:10
I'm trying to use Poster to test a servlet using Apache Commons FileUpload.
When I set it up as above, I get a
"org.apache.commons.fileupload.FileUploadException: Stream ended unexpectedly"
error. Any thoughts on why?
Original comment by sd...@shaw.ca
on 10 Aug 2011 at 9:02
Original issue reported on code.google.com by
reywil...@gmail.com
on 1 Dec 2009 at 11:14