Delivering dynamic content using cgi module

Shichang Zhao shichang at icubed.com
Wed Mar 8 06:46:07 EST 2000


Assume a single dynamically generated document as following:

Content-Type: text/html

     <pre>Hello</pre>

Content-Type: image/gif

      < ---open a .gif file, read data, and print it to stdout -->

Content-Type: image/pjpeg

      < ---open a .jpg file, read data, and print it to stdout -->


How to deliver it using CGI? A simple example script would be very helpful.

Thanks





More information about the Python-list mailing list