nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Re: PHP e content-length

Von: Davide Trani (nodt@spam.com) [Profil]
Datum: 17.06.2008 11:45
Message-ID: <485787cf$0$17944$5fc30a8@news.tiscali.it>
Newsgroup: it.comp.www.php
"Filippo Toso - Creative Park" <filippo.toso@creativepark.it> wrote in
message news:6bp8paF3d3788U1@mid.individual.net...
> Davide Trani ha scritto:
>
>> In una pagina in particolare mi fa sta cosa nelle altre no.
>> Ho pensato anche io al fatto che in qualche modo il webserver/php non
>> riesca a calcolare la lunghezza dell'output ma non ho idea di quale
>> comando possa essere a causare questa cosa.
>
> Puoi trovare una breve spiegazione a questo indirizzo:
>
> http://www.apacheweek.com/features/http11
>
> Normally, when sending back a response the sever has to know everything
> about the response it is about to send before it sends it. For
> instance, servers should set the Content-Length header on each response
> to the length of the response itself. This can be difficult for the
> server to do if the content is dynamically created (e.g. if it is the
> output of a CGI script). So in practice servers (including Apache)
> often do not send a Content-Length with dynamic documents.

Si questo lo sapevo ma c'è solo una pagina che ha questo comportamento. E'
possibile che le pagine vengano bufferizzate fino a un certo punto dopo di
che inizia l'invio della risposta anche se lo script non è terminato? Se
fosse questa la causa c'è un modo per aspettare tutto l'output prima di
rispondere in modo che venga settato il content-length?


[ Auf dieses Posting antworten ]