Re: xmlhttprequest to get dynamically generated data seems to have a size limit




ted benedict wrote:
> ok i decided to post more detailed information.
>
> 1. dynamically generated TEXT from a server side php script.
> ---------------------------------------------------------------------------------------
> the server side script looks like this:
> <?php
> echo('text ');
> ?>
>
> if i use xmlhttprequest to GET this file, asynchronously, and then use
> (AFTER the request object's state is 4) .responseText, i can read out
> 'text'. now, depending on the size of this file, i'll get the complete
> generated text or not.
>
> case 1: echo('text '); repeated for about 80kB of space.
> in firefox, no problems occured. in internet explorer, the
> .responseText returned the full generated text.
>
> case 2: echo('text '); repeated for about 120kB of space.
> in firefox, no problems occured. in internet explorer, the
> .responseText only returns a truncated version, not everything.
>
> 2. dynamically generated XML from a server side php script.
> ---------------------------------------------------------------------------------------
> the server side script looks like this:
> <?php
> header("Content-type: text/xml; charset=iso-8859-1");
> echo('<entries>');
> echo('<entry>');
> // more elements
> echo('</entry>');
> echo('</entries>');
> ?>
>
> case 1: copy pasted the entry generating echo statements, repeated for
> about 55kB of space.
> using .responseText, in firefox, no problems occured. in internet
> explorer, the full generated xml is returned
> using .responseXML and counting the entry elements for example, in
> firefox, no problems, in ie no problems
>
> case 2: copy pasted the entry generating echo statements, repeated for
> about 220kB of space.
> using .responseText, in firefox and in internet explorer, only partial
> data is displayed if i print it to a <div> for example
> using .responseXML and counting the entry elements for example, in
> firefox and in ie, the responseXML cannot be accessed as it received
> truncated data and did not build up correctly.
>
>
> now this was a little a simplification because i did more experiments
> to get the file sizes and cases more exactly (ie fails to receive and
> build the responseXML object sooner than firefox, for example)
>
>
> i hope this explained my problem? i hope it was interesting for you to
> see what weird things happen :)

As I pointed in my first post:
<http://support.microsoft.com/default.aspx?scid=KB;en-us;q208427>

Please take your time to read it though. It is nasty (the fix), but it
is forced after numerous Address Buffer Overflow attacks. Firefox is so
generous just because it is still in the position of "Uncachable Joe"
("-Why is this Joe so uncachable? - Because why the hell anyone would
want to cache him?!")

Change you submission method to POST (using say www.ajaxtoolbox.com)
and be happy ever after. ;-)

.



Relevant Pages

  • Re: xmlhttprequest to get dynamically generated data seems to have a size limit
    ... dynamically generated TEXT from a server side php script. ... in firefox, no problems occured. ... ..responseText returned the full generated text. ...
    (comp.lang.javascript)
  • Problem with some Pages? - Re: More piccies
    ... >> in Firefox, Biffo. ... Yep, or to be more exact, what the *Browser* is seeing in the HTML ... the same Server, which just happened to have a single Character ... the Pages/Pics using BackSlashes or ForwardSlashes! ...
    (uk.people.silversurfers)
  • Interesting browser/site/proxy interaction. FT.com/Squid
    ... This machine happens to be a legacy WIN98SE machine running IE6 aned Firefox. ... We are *all* configured to use the SQUID proxy on a Debian Linux box that acts as a file server and DNS cache and proxy cache. ... Anyway, if you have odd timeout behaviour access *certain* files through a proxy server, and no problems when accessing natively, try upgrading SQUID. ...
    (comp.os.linux.misc)
  • Re: my microsoft publisher website will not publish to domain name
    ... When I try your domain address in FireFox I get: Server not Found. ... I have just spent 45min with 1&1 and we have published my web site. ... my website I don't suppose it will be an issue. ...
    (microsoft.public.publisher.webdesign)
  • RE: Websites hosted on SBS partially load when accessed externally
    ... RWW is hosted on the current production server and I can't seem to ... Does the issue happen when you load the CRM sites through internet using ... Try to use Firefox to open the web page, ...
    (microsoft.public.windows.server.sbs)