commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <mart...@apache.org>
Subject Re: "Stream ended unexpectedly" - simple testcase
Date Tue, 15 Jul 2008 18:05:06 GMT
On Tue, Jul 15, 2008 at 10:50 AM, Garrett Smith <dhtmlkitchen@gmail.com>
wrote:

> 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--');
>

In the above, do you really mean '\n'? It needs to be '\r\n'.

--
Martin Cooper



>
>
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message