CGI in C: need help determining mime types of files
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"); |
Maybe you could use system() to run the file --mime command.
|
All times are GMT -5. The time now is 05:49 PM. |