Hi, adding the following to your httpd.conf AddType text/xml .xml
should solve your Problem Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131 WWW: http://www.ecos.de Fax: +49 6133 925152 ------------------------------------------------------------- ----- Original Message ----- From: "Brian Burke" <[EMAIL PROTECTED]> To: "embperl" <[EMAIL PROTECTED]> Sent: Wednesday, January 30, 2002 7:11 PM Subject: mime type problem when doing redirects > I'm having a mime type problem and I wanted to see if > someone on the list could help. I think it relates to when > the http headers are being written. > > Here is my setup: I have 2 embperl areas, embperl and > embperl2. I serve html documents from embperl and xml > documents from embperl2 (I want the Content-Type to > be text/xml if a doc. is requested in embperl2). I know > this sounds complicated, but there are other reasons why > I need 2 embperl areas. > > When a request is issued for /embperl/something.html > I want to internally redirect to /embperl2/somethingelse.xml, > and have the Content-Type be text/xml. > > something.html basically contains the following: > [- $req_rec->internal_redirect("/embperl2/somethingelse.xml"); -] > > The redirect is working fine, however I am not getting the right > Content-Type in the http header. I've tried using the following in > something.html and somethingelse.xml with no success (I still get > text/html): > [- $req_rec -> header_out("Content-Type" => "text/xml"); -] > > If I browse directly to /embperl2/somethingelse.xml, it works fine, > only the redirect is causing problems. > > I have the following in my httpd.conf: > > <Location /embperl/> > SetEnv EMBPERL_DEBUG 0 > SetEnv EMBPERL_OPTIONS 9445136 > SetHandler perl-script > PerlHandler HTML::Embperl > #PerlSendHeader On > Options ExecCGI > </Location> > > <Location /embperl2/> > SetEnv EMBPERL_DEBUG 0 > SetEnv EMBPERL_OPTIONS 9445136 > SetHandler perl-script > PerlHandler HTML::Embperl > #PerlSendHeader On > Options ExecCGI > </Location> > > Any ideas? > > Brian Burke > -- > ______________________________________ > Brian Burke > LSSi Corp. > email: [EMAIL PROTECTED] > url: http://www.lssi.net/~bburke > phone: (919) 466-6838 > ______________________________________ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]