소켓프로그래밍

chrome http web프로그래밍 에러 (failed) net::ERR_CONTENT_LENGTH_MISMATCH

blackbearwow 2020. 9. 24. 07:48

간단한we서버를 java와 cpp로 구현해보았다.

internet explorer는 잘 되는데 자꾸 chrome으로는 잘 안되는 거야. 그래서 너무 화가 났었지. 한국어로 검색해보고 영어로 검색해보고 하는데 나중에 되어서 Content-length의 문제인걸 알았다. chrome은 Content-length의 길이가 안맞으면, 길이가 안맞다고 이상하다고 에러가 뜨나봐. 그래서 그냥 Content-length를 보내지 않았더니 왠걸! 잘만되네? ㅋㅋ

떴던 에러: (failed) net::ERR_CONTENT_LENGTH_MISMATCH (개발자모드 network중에 status가 이렇게 되있었음)

참고가 된 사이트: forum.nginx.org/read.php?15,279202

 

Content-Length and really sent bytes sometimes mismatch

I've found the same problem with current stable Nginx-1.14.1 from nginx-repo on CentOS6. There are two web-sites on this server, and problem occurs only on one of them. Also I have many servers with nginx without this problem, so the problem may have some

forum.nginx.org

결론: Content-length를 계산할것 아니면, 보내질 말자

'소켓프로그래밍' 카테고리의 다른 글

리눅스 udp패킷 전송  (0) 2024.02.03
java 간단한 web Server 한글전송 깨짐.  (0) 2020.09.25
cpp 간단한 web서버  (0) 2020.09.23
JAVA 간단한 web서버 만들기  (0) 2020.09.23
메시지 주고받기  (0) 2020.09.19