commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Smith" <dhtmlkitc...@gmail.com>
Subject Re: "Stream ended unexpectedly" - simple testcase
Date Tue, 15 Jul 2008 17:50:58 GMT
On Tue, Jul 15, 2008 at 10:26 AM, Mark Thomas <markt@apache.org> wrote:
> Garrett Smith wrote:
>>
>> On Tue, Jul 15, 2008 at 9:42 AM, Mark Thomas <markt@apache.org> wrote:
>>>
>>> Garrett Smith wrote:
>>>>
>>>> Can't get my multipart/form-data processed. Error: "Stream ended
>>>> unexpectedly".
>>>
>>> Tomcat version?
>>>
>>
>> Apache Tomcat Version 6.0.10
>>
>> The post request works fine via "normal" submit, just not with XHR.
>
> You might have been bitten by
> https://issues.apache.org/bugzilla/show_bug.cgi?id=44494
>

In the report, request.getHeader() ERRORS Over 8k.

I'm sending:

req.send('--DATA1215979532633\n'
    +'Content-Disposition: form-data; name="name";'
    +'\n\na'
    +'--DATA1215979532633--');

Total:	90 bytes

(And it still works fine over "normal" form submission.)

But with XHR, the result is: "Stream ended unexpectedly"

Something with parsing. Maybe the headers?
Content-Type: multipart/form-data; charset=UTF-8; boundary=DATA1215979532633

?

Garrett

> The 6.0.17 RC should have this fixed.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message