mg_send_mime_file2( conn, path, mime_type, additional_headers );
|The connection over which the file must be sent|
|The full path and filename of the file|
|The mime type or NULL for automatic detection|
|Additional headers to be sent|
mg_send_mime_file2() can be used to send a file over a connection. The function is similar to
mg_send_mime_file() with the additional functionality that user specified headers can be sent. The MIME type of the file can be specified in the function call, or will be automatically determined based on the extension of the filename if the
mime_type parameter has the value NULL.
Additional custom header fields can be added as a parameter. Please make sure that these header names begin with
X- to prevent name clashes with other headers. If the
additional_headers parameter is NULL, no custom headers will be added.