IMHO Commons HTTP client sender sets the content length automatically...(Other than for chunking scenerio). What ever the things we write to the OutputStream through Commons HTTP will be counted and set as content-length by the commons-sender.

~Thilina

On 8/11/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
Yes, It is "mandatory in HTTP 1.0 to set the content-length"

-- dims

On 8/10/05, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
> Hi,
>  I just came.... Any progress ... What i believed  is there is no need ot
> set  Content-Length in MIME messages, Since they depend on Boundaries... If
> we are going to set the content-length we have to buffer the whole message
> in memory...
>
>  Is it mandatory in HTTP 1.0 to set the content-length...
>
>  ~Thilina
>
>
> On 8/11/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> > Found the problem...maybe thilina can fix it quicker than me.
> > content-length in http header is not set correctly when using mtom
> > (default is HTTP1.0 in axis2.xml and content-length has to be set
> > correctly in this case)
> >
> > -- dims
> >
> > On 8/10/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> > > Thilina,
> > >
> > > Please deploy the imagetransfer's mtomSample.aar file and run the
> > > client in mtomClient.jar. Am getting
> > > "javax.xml.stream.XMLStreamException". Am still
> debugging. looks bad.
> > >
> > > -- dims
> > >
> > > --
> > > Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service
> Platform
> > >
> >
> >
> > --
> > Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform
> >
>
>
>
> --
> "May the SourcE be with u"
> http://www.bloglines.com/blog/thilina


--
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform



--
"May the SourcE be with u"
http://www.bloglines.com/blog/thilina

Reply via email to