James Abbott wrote:
[snip]
>    $query->header_out( "Content-disposition",
>                        "attachment;filename=$sid.jnlp" );
>    $query->send_http_header('application/x-java-jnlp-file');
>    return $template->output();

[snip]

> This works fine under mod_perl1, but having looked at the MP2 porting
> docs (after it didn't work!), I've modified the $query->header_out line to:
> 
> $query->headers_out->{"Content-disposition"} =
> "attachment;filename=$sid.jnlp";
> 
> however this just gives me the following error:
> Can't locate auto/CGI/Application/Plugin/Apache/Request/header_type.al
> in @INC....

I have to admit to not using this on MP2 myself. I just followed the porting
guide to get the tests to pass.

Have you tried using the normal CGI::App methods for doing headers? I think
C::A::P::Apache tries to send those out through mod_perl at the very end.

  $self->header_add('Content-disposition' => "attachment;filename=$sid.jnlp");
  return $template->output;

> I have tried removing the 'send_http_header' line as well, but with the
> same result...I am using CAP::Apache (installed with the MP2=1
> argument....), however I am not sure this is really installed for
> mod_perl2, since the installed module still required modules in the
> Apache namespace, which I had to modify to Apache2 before it started
> working.

Again, the install may not work exactly like it should on MP2. If you have some
time I'd greatly appreciate any efforts to make it work better on MP2.

-- 
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to