XML files are plain text and they are not generated dynamically.
You're right, it was the server side settings.
I have tested with Apache, and the content-length header is provided during
the response.
So we have decided to move to apache server since it's very stable and
secure.

Thx
WJ

----- Original Message -----
From: "Spencer W. Thomas" <[EMAIL PROTECTED]>
To: "JDJList" <[EMAIL PROTECTED]>
Sent: Monday, September 16, 2002 10:39 AM
Subject: [jdjlist] RE: HTML File Size


> Content-Length will be specified in the Response header IF the server
> chooses to set it.  It has absolutely NOTHING to do with whether the
> request was a GET or a POST.  Greg is confusing the Content-Length in
> the REQUEST header with the one in the response header.  Only POST
> includes a Content-Length in a REQUEST because with a GET there is no
> "content" in the request.
>
> It is often difficult to specify Content-Length for
> dynamically-generated content, because you have to generate the entire
> content in order to know how long it is.  This may be what is happening
> with your "xml" requests.  Is there really an XML *file*, or is the XML
> content being generated by the server on the fly?
>
> You don't specify what server you're using.  If you're serving up plain
> files with a server like Apache, it should be providing the
> Content-Length in the response headers.  If you're using a servlet or
> other CGI-type application to deliver the content, then it is the
> responsibility of the application to specify the Content-Length.
>
> =Spencer
>
> Greg Nudelman wrote:
>
> >>> requesting the "Content-Length"  from Response Header.
> > only works with POST and only if the server chose to send it to your
> > client.
> > This will not work with GET.  I think the only reliable way is to
> > download the file first and then compute it's size.  Alternatively,
> > you can maybe create something funky and custom with your GET request
> > on the server-side, but I would just switch to POST if
> > "Content-Length" is important to you.
> >
> > Greg
> >
> >     -----Original Message-----
> >     *From:* Won Sang Jo [mailto:[EMAIL PROTECTED]]
> >     *Sent:* Friday, September 13, 2002 3:27 PM
> >     *To:* JDJList
> >     *Subject:* [jdjlist] RE: HTML File Size
> >
> >     I don't have problem getting the file, my problem is getting the
> >     file size.
> >     Someone mentioned that sometime the client is able to get the size
> >     of the file by requesting the "Content-Length"  from Response
Header.
> >     But it doesn't work when I'm requesting XML files.
> >     My client side application is using Flash MX running on a browser.
> >
> >     Thax
> >     WJ
> >
> >
> >         ----- Original Message -----
> >         *From:* Greg Nudelman <mailto:[EMAIL PROTECTED]>
> >         *To:* JDJList <mailto:[EMAIL PROTECTED]>
> >         *Sent:* Friday, September 13, 2002 2:30 PM
> >         *Subject:* [jdjlist] RE: HTML File Size
> >
> >         That is a "GET".
> >         You should not need the size to get the file. Or do you need
> >         just the size?
> >
> >         What are you using as your
> >         "client side application"
> >         ?
> >         is that a browser?
> >
> >         Greg
> >
> >
> >             [Greg Nudelman]  -----Original Message-----
> >             *From:* Won Sang Jo [mailto:[EMAIL PROTECTED]]
> >             *Sent:* Friday, September 13, 2002 1:16 PM
> >             *To:* JDJList
> >             *Subject:* [jdjlist] RE: HTML File Size
> >
> >             My HTTP request is directly to the XML file, something
> >             like http://myserver/myfile.xml.
> >
> >             Jo
> >
> >
> >                 ----- Original Message -----
> >                 *From:* Greg Nudelman <mailto:[EMAIL PROTECTED]>
> >                 *To:* JDJList <mailto:[EMAIL PROTECTED]>
> >                 *Sent:* Friday, September 13, 2002 12:05 PM
> >                 *Subject:* [jdjlist] RE: HTML File Size
> >
> >                 Is this an HTTP get or post?
> >
> >                 In the POST you MAY have to specify the size of the
> >                 file you're sending in the header.
> >
> >                 Greg
> >
> >                     -----Original Message-----
> >                     *From:* Won Sang Jo [mailto:[EMAIL PROTECTED]]
> >                     *Sent:* Friday, September 13, 2002 11:04 AM
> >                     *To:* JDJList
> >                     *Subject:* [jdjlist] HTML File Size
> >
> >                     I have a client side application requesting XML
> >                     files using HTTP request
(http://myserver/myfile.xml).
> >                     When the client request multimedia files, it is
> >                     able to know the file size during the request;
> >                     however, I'm having problem getting the XML file
size.
> >                     Is any solution to this?  Could be the server side
> >                     setting the solution?
> >
> >                     Jo
> >                     To change your JDJList options, please visit:
> >                     http://www.sys-con.com/java/list.cfm
> >
> >                 To change your JDJList options, please visit:
> >                 http://www.sys-con.com/java/list.cfm
> >
> >             To change your JDJList options, please visit:
> >             http://www.sys-con.com/java/list.cfm
> >
> >         To change your JDJList options, please visit:
> >         http://www.sys-con.com/java/list.cfm
> >
> >     To change your JDJList options, please visit:
> >     http://www.sys-con.com/java/list.cfm
> >
> > To change your JDJList options, please visit:
> > http://www.sys-con.com/java/list.cfm
>
>
>
>
> To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
>

To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to