>Message: 1

>Date: Tue, 17 Dec 2002 09:08:09 -0600

>From: Pete Prodoehl <pete.prodoehl@cygnusinteractive.com>

>To: html-template-users <html-template-users@lists.sourceforge.net>

>Subject: Re: [htmltmpl] HTML-Pager and Netscape



>If it works in IE, but not other browsers, it probably is the mime type,

>IE often likes to 'guess' what the mime type might be, whether it's

>correct or not. Other browsers tend to do the right thing, and honor the

>mime type being served.




Howdy Pete!


Thanks for the insight into the browser differences.  I also found that if you use the "print_to" option with the output method and the Content-type line together on the same line you get a 500 error.  So You have to separate the two lines, only if you are using the "print_to" option. 

Here's an example:


## Line 16 - Works, if you are only using the bare output method. $tmpl->output()

## Line 16 Below. -- DOES NOT WORK

##print "Content-type: text/html\n\n", $tmpl->output(print_to => *STDOUT);


## Send Both the Content-type and template output method on separate lines.


print "Content-type: text/html\n\n";

## Send Only the template output. -- THIS ONLY WORKS WITH IE CORRECTLY.

$tmpl->output(print_to => *STDOUT);


I am not sure if this is only seen in IIS or not and it's not that big of a deal.  I just wanted to note this for others using IIS and H:T.


-- Jeff Pelkey