caomike / poster-extension

Automatically exported from code.google.com/p/poster-extension
0 stars 0 forks source link

",UTF-8" added at the end of Content-Type field #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

1. Set Content-Type to multipart/form-data;boundary=-------XXXXXXX
2. Set the request body to
        boundary=-------XXXXXXX
        boundary=-------XXXXXXX--
3. Post to your server url

Serverside, the Content-Type field has a trailing ",UTF-8".
This makes multipart boundaries detection inconsistant.

I use Poster 2.0.0 on firefox 3.0.15, over Ubuntu 9.04
My server is a java server running on tomcat, I use the org.apache libs to
parse the request with the uploaded file.

Original issue reported on code.google.com by reywil...@gmail.com on 24 Nov 2009 at 11:05

GoogleCodeExporter commented 8 years ago
After further investigation, it seems that it is not the UTF-8 parameter that 
causes
the parsing to fail, but the form-data separation.
The specification tells a \r\n (CR-LF) is the separation marker after the 
boundaries.

The issue is void, from my point of view.

Original comment by reywil...@gmail.com on 1 Dec 2009 at 11:11

GoogleCodeExporter commented 8 years ago
Marking as invalid according to last comment.

Original comment by alexmilo...@gmail.com on 1 Dec 2009 at 3:37