I have got a question about http:request(...) in erlang.
When I retrieve a page using the above command (for example the main page of an apache webserver), I have in my headers list the value {"content-length","177"}, which seems right, because using byte_size(…) on the body of the page I get the same result..this suggests me that the size of the page is 177 bytes.
I checked this result using Tools -> page info option in firefox, but it says that the size is 146 bytes…can you tell me why there is this difference?
In The HTTP specification (RFC 2616) Section 14. is the definition of the
content-lenghtheader:So either Firefox is wrong, got a different content or shows the size for a different definition of “size”.