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]