[DGD] HTTPD and Images

Erwin Harte harte at is-here.com
Mon Aug 15 17:05:01 CEST 2005


On 8/15/05 9:09 AM Lord Lerkista wrote:
> I'm making a simple httpd daemon for my mud, but i don't know how to 
> handle images
> Any help?? i only can handle text =/

You could start with reading the HTTP 1.1 specs:

     ftp://ftp.isi.edu/in-notes/rfc2616.txt

Although some might consider that cruel and unusual punishment.

The only significant difference between serving up a text or html page 
compared to an image is the content-type indication.

For example, plain text would be presented as:

     Content-Type: text/plain
HTML as:

     Content-Type: text/html

But a GIF image as:

     Content-Type: image/gif

Hope that helps,

Erwin.
-- 
Erwin Harte <harte at is-here.com>



More information about the DGD mailing list