Dear Christoph, I'd like to answer your question, but I don't understand it. >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. I have never heard of MacHTTP 2.2. It was my understanding that after version 1, the name of MacHTTP was changed to WebSTAR. Could you confirm the name of your Webserver? >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. What is "a problem"? What precisely doesn't work? How does it fail? Finally, are you saying your program works if you use personal websharing, but not if you use "MacHTTP"? > 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. I think you should be using a different newline in your print statements. The http specs call for a newline of \x0D\x0A. What you have above will generate newlines of \x0A under Unix, and \x0D under MacOS. (Newlines only matter in the header; in the body of the document they usually are irrelevant.) Beyond that, I can't help much without some more information. If your script works with personal websharing, then your problem has nothing to do with MacPerl, but is probably a configuration problem with your http server. If it fails with all Mac webservers, the next thing I would check is that GD is working correctly on your Mac, e.g. by saving the GIFs to a file and looking at them. -David Steffen- David Steffen, Ph.D. President, Biomedical Computing, Inc. <http://www.biomedcomp.com/> Phone: (713) 610-9770 FAX: (713) 610-9769 E-mail: steffen@biomedcomp.com ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org