OT: Jak dekodovat multiline HTTP hlavicky?

Dan Lukes dan at obluda.cz
Thu May 28 01:38:09 CEST 2009


Radim Kolar napsal/wrote, On 05/27/09 19:42:
> O multiline hlavickach jsem si precetl zde:
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
> 
> ale neni mi z te dokumentace jasne jak se maji spravne ty multiline
> hlavicky dekodovat zda maji byt:

Ten odstavec zacina tim, ze se odvolava na odstavec 3.1 z RFC822 - a tam 
se to pise celkem jednoznacne.

  ---------
For convenience, the field-body  portion  of  this  conceptual
entity  can be split into a multiple-line representation; this
is called "folding".  The general rule is that wherever  there
may  be  linear-white-space  (NOT  simply  LWSP-chars), a CRLF
immediately followed by AT LEAST one LWSP-char may instead  be
inserted.
  ---------


> Pokud mam pravdu a b) je spravne tak je to ocividne chyba tomcatu
> jelikoz lame radek ktery neobsahuje mezeru.

"Neobsahuje" neni to prave slovo - zalomit to lze tam, kde by 
(zjednodusene receno) mezera byt mohla at uz tak aktualne je ci nikoliv.

					Dan



More information about the Users-l mailing list