[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] dynamic Gifs with MacPerl under MacHTTP 2.2



Dear all,

I am using MacPerl 5.2.0r4 under MacOS9 at a G4. I have recently 
ported a number of cgi scripts from UNIX to the Mac. Webserver is 
MacHTTP 2.2. Everythung works fine. The CGIs are called and as far as 
content-type text/html is concerned the output is shown as webpage. 
However, the mayor purpose of the CGIs is to create dynamic gif 
images. Under UNIX with Apache or Oracle Webserver this worked 
perfectly. I tried also the websharing-webserver that comes with the 
MacOS. So I suppose its a problem with MacHTTP 2.2. I searched the 
mailing list archives but found no comprehensive comment on this 
problem. Also the text-cgis contain only the content-type text/html.

Neither...

# Convert the image to GIF and print to standard output:-------------------
print "Content-Type: image\/gif\n\n";
print $im->gif;

nor...

print "HTTP\/1.0 200 OK\n";
print "Server: MacHTTP\n";
print "Content-Type: image\/gif\n\n";
print $im->gif;

worked.

I use GD to generate the gifs.

Your help is very much appreciated.

Christoph
-- 
+---------------------------------------------------------------+
Christoph Grunau
Institut de Biologie (CNRS, IGH)
4 Bvd Henri IV
34060 Montpellier
FRANCE

Tel.: +33 (0) 4 67 60 11 23
Fax:  +33 (0) 4 67 66 03 06
Christoph.Grunau@igh.cnrs.fr
http://www.methdb.de
+---------------------------------------------------------------+

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org