I've built a simple concurrent web server with TCP sockets in Java.
When I make a GET request to my web server:
It works fine on Firefox and Internet Explorer, the html page (a very simple one) is loaded ok, but not on Chrome.
The thing is that with Chrome the response is 200 OK Status, but the content of the html page is never loaded. At the console, at network, I get the next status field:
"(failed) net::ERR_CONTENT_LENGTH_MISMATCH"
but the response headers in the Chrome console are as follow (content-length is included!!):
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 365
Access-Control-Allow-Origin: *
The GET request:
GET /example/index.html HTTP/1.1
Host: localhost:32000
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: es-ES,es;q=0.8,en;q=0.6
Maybe is a response headers problem, I'v tried including "Access-Control-Allow-Origin: *" but it hasn't solved it.
Any idea where this problem may originate? If you need any piece of web server code don't hesitate on ask for it.