content type headers

2009-07-02 Thread Dermot Paikkos
Hi, I've got some old code to deal with and I have hit a problem. If there is a request for a page that has mixed content EG: 'text/html' and 'image/jpeg', the image media is not being displayed correctly under the FireFox browser. The way things currently work is that media other than text

Re: content type headers

2009-07-02 Thread Gunnar Hjalmarsson
Dermot Paikkos wrote: If there is a request for a page that has mixed content EG: 'text/html' and 'image/jpeg', the image media is not being displayed correctly under the FireFox browser. What exactly do you mean by that? When you use a browser to request a usual HTML page with IMG elements,

RE: content type headers

2009-07-02 Thread Hellman, Matthew
>>Hi, >> >>I've got some old code to deal with and I have hit a problem. >> >>If there is a request for a page that has mixed content EG: 'text/html' >>and 'image/jpeg', the image media is not being displayed correctly under >>the FireFox browser. >> >>The way things currently work is that media ot

Re: content type headers

2009-07-02 Thread Gunnar Hjalmarsson
Hellman, Matthew wrote: The answer to your problem seems to be making sure one and only one content-type header is returned with the image, and that it has the correct value (e.g. Content-Type: image/jpeg or whatever). Right, and it just struck me that this is probably a web server configurat

RE: content type headers

2009-07-02 Thread Hellman, Matthew
I don't think that's it's a web server thing, because he's dynamically generating the images and not using a .jpg extension. Doing it this way allows you do such things as resize the image on the fly using URL parameters. Something like: src="/images/showImage.html?imageid=123456&size=800x600