You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Meryl Silverburgh <si...@gmail.com> on 2006/04/05 20:53:00 UTC
Why Mozilla sends 2 more requests if the respond is an image
Hi,
I have a Java Servlet which returns an image for each request.
But when I use mozilla to access that Java Servlet, it also sends 2
more requests after it get the respond image back.
Can you pleae tell me why?
Here is the http log from live http header extension?
http://localhost:8080/myWAR/MyServlet?a=1
GET /myWAR/MyServlet?a=1 HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1)
Gecko/20060313 Fedora/1.5.0.1-9 Firefox/1.5.0.1 pango-text
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Type: image/png
Content-Length: 45542
Date: Mon, 03 Apr 2006 02:43:13 GMT
----------------------------------------------------------
http://localhost:8080/myWAR/MyServlet?a=1
GET /myWAR/MyServlet?a=1 HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1)
Gecko/20060313 Fedora/1.5.0.1-9 Firefox/1.5.0.1 pango-text
Accept: image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 03 Apr 2006 02:43:13 GMT
----------------------------------------------------------
http://localhost:8080/myWAR/MyServlet?a=1
GET /myWAR/MyServlet?a=1 HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1)
Gecko/20060313 Fedora/1.5.0.1-9 Firefox/1.5.0.1 pango-text
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 03 Apr 2006 02:43:13 GMT
----------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org