It looks like Apache has some sort of bug fix for dealing
with gif files that I don't fully understand.
A little background:
Running Apache in conjunction with IBM's
web sphere app server on NT4 server SP4. Using a servlet
to display an image, which is actually a glob in a db2 database
field, it brakes from time to time when using a netscape browser.
Looking at the source, I found no difference between what the browser
was getting regardless of the image displaying or not.
So, moved onto to hooking up a sniffer, and this is what I found...
when the image displays properly my servlet prints out
Content-Type: image/gif
and then Apache adds:
X -Pad: avoid browser bug
the sniffer then shows the data streaming which makes the image.
The only interesting difference I found between when the image displays
and when it does not is that the X -Pad line is not sent when the image
breaks... Makes sense I guess, but then I have to wonder why apache is
not sending this everytime?
I took a look at the http rfc and no x -Pad specification there,
and nothing on
apache.org either, or should I say that a quick search
turned up no hits.
Though a quick hack easily fixes the problem, it has to be done on the
client side, which is not very elegant (ie, an onError event that
reloads the image in the img tag)- I am curious to know if anyone
has heard of this X pad directive. I also double checked the httpd.conf
files of a few machines, nothing there that makes sense either.
Curiously,
-david
Anyone know anything about this one
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.