CGI-Ajax - Custom headers?

Posted on Thu Nov 10 06:03:05 2005 by rumblesnort
Custom headers?
Hello, I'm using CGI::Ajax for a project and I'm having a tough time with something. In my application, a user clicks on a radio button and is supposed to get a file sent to them. To perform this, I'm using: "Content-type: application/zip\n"; "Content-Disposition: attachment; filename=".$filename."\n"; "Content-Description: File\n\n"; print $file I've enclosed these in a scalar, tried printing them in a subroutine, tried CGI's "print header" all with no success.. I just receive the headers and garbage in a frame instead of having the file sent to the user. Even tried placing this in an external script and calling it, but I'm at a loss. Any hints here? Thanks!
Write a response