문제

Most of websites when shown with the http://www.rexswain.com/httpview.html viewer display some extra characters before the DOCTYPE and also after the ending HTML tag. Is this really sent by the server or it's a bug of the rexswain viewer ?

EDIT: For example, the first 2 lines of drupalfrance.com are

7add(CR)(LF)
<!DOCTYPE·html·PUBLIC·"-//W3C//DTD·XHTML+RDFa·1.0//EN"(LF)

and the 4 last lines are

</html>(LF)
(CR)(LF)
0(CR)(LF)
(CR)(LF)
도움이 되었습니까?

해결책

In the HTTP header, notice Transfer Encoding: chunked.

The hexadecimal number (followed by CR,LF) is the number of characters in the following chunk. In your case, 7add = 31453. Then 0,CR,LF indicates the end.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top