http - question about size (bytes) of webpage retrieved using erlang -


i have got question http:request(...) in erlang.

when retrieve page using above command (for example main page of apache webserver), have in headers list value {"content-length","177"}, seems right, because using byte_size(...) on body of page same result..this suggests me size of page 177 bytes.

i checked result using tools -> page info option in firefox, says size 146 bytes...can tell me why there difference?

in http specification (rfc 2616) section 14. definition of content-lenght header:

14.13 content-length

the content-length entity-header field indicates size of entity-body, in decimal number of octets, sent recipient or, in case of head method, size of entity-body have been sent had request been get.

so either firefox wrong, got different content or shows size different definition of "size".


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -