Forum Moderators: phranque
I am running a Apache/Tomcat server on Gentoo. When someone attempts to download a file Apache sends either no content-length or an incorrect content-length. the file is 40k but on different browsers the size is displayed as 4Gb. When i run a wget from the console i get this result:
wget --header='Accept-Encoding: gzip,deflate' -S http://www.example.com/thefolder/thefile.xpi
--08:38:36-- http://www.example.com/thefolder/thefile.xpi
=> `thefile.xpi'
Resolving www.example.com... 123.456.789.001
Connecting to www.example.com[123.456.789.001]:80... connected.
HTTP request sent, awaiting response...
1 HTTP/1.1 200 OK
2 Date: Wed, 01 Oct 2008 08:38:36 GMT
3 Server: Apache
4 X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
5 ETag: W/"46894-1222342094000"
6 Last-Modified: Thu, 25 Sep 2008 11:28:14 GMT
7 Vary: Accept-Encoding
8 Content-Encoding: gzip
9 Connection: close
10 Content-Type: application/x-xpinstall
[ <=> ] 46,756 --.--K/s
08:38:36 (162.15 MB/s) - `thefile.xpi' saved [46,756]
As you can see there is no content-length header being served. However when i change it to port 8080 i get this:
wget --header='Accept-Encoding: gzip,deflate' -S http://www.example.com:8080/thefolder/thefile.xpi
--08:38:36-- http://www.example.com:8080/thefolder/thefile.xpi
=> `thefile.xpi'
Resolving www.example.com... 123.456.789.001
Connecting to www.example.com[123.456.789.001]:8080... connected.
HTTP request sent, awaiting response...
1 HTTP/1.1 200 OK
2 Server: Apache-Coyote/1.1
3 X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
4 ETag: W/"46894-1222342094000"
5 Last-Modified: Thu, 25 Sep 2008 11:28:14 GMT
6 Content-Type: application/x-xpinstall
7 Content-Length: 46894
8 Date: Wed, 01 Oct 2008 08:44:43 GMT
9 Connection: keep-alive
There you clearly see it has sent it and it is correct.
Does anyone have an idea why it would not send or send incorrectly on port 80?
Thanks :)
[edited by: jdMorgan at 2:08 pm (utc) on Oct. 1, 2008]
[edit reason] example.com [/edit]