Wanted: Cross-Platform MimeType detector. Given a URI of a request, the 'suggested' mimetype (content-type returned from an HTTP server), and the content returned, your function will 'fix' incorrect mimetypes. For instance, if the server is misconfigured and returns 'data/binary' when it returns a quicktime file that happens to accidentally be named '[login to view URL]', your function will realize the best mime-type for this file is 'video/quicktime'. I am most interested in media mimetypes: quicktime types, windows media player types, real software types, mpeg, jpeg, gif, png types, but the function should be easily extendable (something like [login to view URL])... This has to work on both Windows and Linux. You can use FindMimeFromData on Windows, but I need an equivalent function on Linux that works for the more 'windows-ey' mime-types. Desired API: int getMimeType ( const char **mimeType, // <= set by you. const char *uri, // => filename (eg, '[login to view URL]') const char *responseType, // => content-type (eg, 'binary/data') const char *buffer, // => content of response size_t sizeBuffer );
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
## Platform
Windows 95 and up, and Linux