Hello Matt, Does AxKit or Apache override the 'print' function to print HTTP headers the first time print is called ?
I am having a problem with sending a binary output file to the browser. When I have used plain mod_perl, I did Apache->request->send_fd($filehandle), and that seemed to work. But now if I do that, the content-type header is not sent. I also tried to print the binary file using 'print' but I somehow print invalid flash -- perhaps this is because print doesn't handle binary strings ? Thanks, Boris On 0, Matt Sergeant <[EMAIL PROTECTED]> wrote: > On Fri, 28 Dec 2001, [EMAIL PROTECTED] wrote: > > > Hi, > > > > Can I tell AxKit to use a different Content-Type header > > when my XSP is executed ? > > Yes, you can use AxKit::XSP::WebUtils with: > > <web:header name="Content-Type" value="application/x-swf-flash"/> > > Or whatever the content type is supposed to be. > > However I wouldn't recommend that approach... > > > I want to convert certain XML files to dynamically generated > > flash movies. How does AxKit work with binary data output ? > > Am I on the right track ? What would the best approach be ? > > THe best approach would be to write a new Language module for a specific > XML dialect to convert it to flash. Then set the content type in the > language module. This is how AxPoint works, and it leaves the possibility > open to alternately transform my slideshows into HTML if I want to do that > in the future. > > See the source code for AxPoint - it will give you the best starting > point. Although it uses XML::XPath, and I'd re-write it using XML::LibXML > if I had the energy. > > -- > <!-- Matt --> > <:->Get a smart net</:-> > > > --------------------------------------------------------------------- > 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]
