commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Freeman" <aa...@sendthisfile.com>
Subject RE: "Stream ended unexpectedly" - simple testcase
Date Thu, 17 Jul 2008 14:00:53 GMT
Shouldn't there be a newline after the content ("a")? In otherwords
shouldn't --DATA1215979532633-- be on its own line?

-a

> -----Original Message-----
> From: Garrett Smith [mailto:dhtmlkitchen@gmail.com] 
> Sent: Tuesday, July 15, 2008 7:14 PM
> To: Commons Users List
> Subject: Re: "Stream ended unexpectedly" - simple testcase
> 
> On Tue, Jul 15, 2008 at 11:05 AM, Martin Cooper 
> <martinc@apache.org> wrote:
> > 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:
> 
> 
> >> 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'.
> >
> 
> The code above is (a snip of) actual code that I saved to a 
> file, Form2.html (my prev post has the full code), and ran in 
> Firefox 3. I also posted a file process.jsp, and the actual result.
> 
> Where do you propose I use \r\n? I've tried replacing every 
> occurence of \n with \r\n and got the same result.
> 
> Garrett
> 
> > --
> > Martin Cooper
> >
> [snip prev msg]
> 
> ---------------------------------------------------------------------
> 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