perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kee Hinckley <naz...@somewhere.com>
Subject Re: using embpcgi.pl & reading images from database
Date Wed, 11 Jun 2003 00:35:42 GMT
At 4:48 PM -0700 6/10/03, Maurice McCabe wrote:
>The following code works when called using mod_perl. It does not work when
>calling via embpcgi.pl. Does anyone have a suggestion why?
>
>[-
>	use DBI;
>	use ZIPLoc;
>	$dbh = DBI->connect("DBI:mysql:locator", "root", "") || die 
>"Can't connect:
>$_";
>	($couponImage, $mimeType) = ZIPLoc::getCouponImage($dbh,
>$fdat{'couponid'});
>	$req_rec->content_type('$mimeType');

Assome that your problem is there.  Is there a request record without Apache?
Try using $http_headers_out{CONTENT-TYPE} instead.
-- 
Kee Hinckley
http://www.messagefire.com/          Anti-Spam Service for your POP Account
http://commons.somewhere.com/buzz/   Writings on Technology and Society

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message