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

Re: [MacPerl-WebCGI] Q2 What use is Mime image/gif?




Hi,

>> print "Content-type: image/gif\n\n";
>
>The content type tells the browser what kind of data is being sent.

I know. That was not the point of my question. Somewhere in my CGI I have 
a line
print "<IMG SRC=$myPict>". From my booklet on HTML, <IMG SRC="mymug.gif> 
seems to be completely legitimate. 

So, if this were a gif, should I have written:

print "Content-type: text/html\n\n";
print "<HTML> bla bla
print "Content-type: image/gif\n\n";
print "BASE HREF bla bla
print "<IMG SRC=$myPict>"
print "Content-type: text/html\n\n";   #to get out of 'gif-mode' again ?
rest of text stuff

?

>Are you sure you want to write a tutorial?  Will this tutorial be
>reviewed by others before being published to hundreds of trusting,
>unsuspecting newbies?

In the case of MacScripters Magazine 
(http://macscripter.net/magazine.html) it is over 12,000 now (not 
counting the people reached thru the cover CD-ROMs of o.a. MacWorld UK). 
:-)

But, seriously, I'm dying for feedback of the critical type on my MacPerl 
efforts. My draft MacPerl tutorials are available from
www.knoware.nl/users/bsfa/index.htm

The current CGI project, for which I finished the last chapter today, is 
made using a beta and because of that I'm not yet allowed to release the 
project yet. Hopefully, however, it will not take too long before I can 
show you that it might be not such a bad project. I'll post a message 
here.

I appreciate receiving critical comments. For those who send them in, 
should they agree, I'm happy to add their name to the project 
contributors.

Bye for now,

Bert
BTW, I'm on digest, so if you'd CC your replies to the list to me, I'd be 
grateful


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