You are writing bad HTTP headers in the code shown below. The corrected code for the header is:

c eval buffer_add = 'content-type: image/tiff'
c +new_line
c +new_line

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Joe Wells
Sent: Friday, May 16, 2008 9:40 AM
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] Browser Security Warning



Is the image being served up from the same server that the page is being
displayed from?

Yes, it is. The image comes from the IFS. Here is the code -

c eval buffer_add = 'Content-Type: image/tiff'
c +'Content-Type: image/tiff'
c +new_line
c +new_line

c eval buffer = buffer + buffer_add

c dou Read(fd_in: %addr(char): 1) < 1
c 69 eval buffer_add = char
c n69 eval buffer_add = %trimr(char)
c n69 eval *in69=*on
c if %len(buffer_add + buffer) > buffer_max
c exsr QTMH_STD_OUT
c eval buffer = buffer_add
c else
c eval buffer = buffer + buffer_add
c endif

c enddo

I Googled some more and found a reference that said to use
"Accept-ranges:bytes" in the header. I tried that and the result is the
same.

Thanks,

Joe

--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.