hello everyone,
I've got a mind bug i cant seem to figure out.. i'm trying to determine mime type of any file (the cgi takes a filename as an argument, makes sure all the "download slots" aren't being used and then sends the file out), reads it, and spews it out. However, i'm sending out
Code:
printf("Content-Type: null/null\n\n");
i've been scouring the man pages and the internet for routines that do this for me, i had read that gnome had something like "gnome_mime_type(file)", but appearantly it's not installed on my system... Any ideas?