You can't set multiple HTTP headers in one call. Once a certain content-type is set in the HTTP header, you're stuck with it. You can however generate different data & content-types depending on certain parameters... check Re: Displaying randomly created png's in HTML for more specifics and a link to the correct RFC.
Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.