>
> Now I wish to import it to embperl mode.
> I used $http_headers_out{Content-type} = "application/octet-stream";
> $http_headers_out{Content-Disposition} = "attachment; filename=demo.tmp";
>

Because the header names contains a minus you need to quote them, otherwise
Perl will treat it a a expression e.g.:

$http_headers_out{'Content-Disposition'} = "attachment; filename=demo.tmp";

Addtionaly you should turn off Embperl HTML escaping by saying

$escmode = 0 ;

somewhere at the start of the page

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
-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to