Xbasic

RESOLVE_MIME_TYPE Function

Deprecated This function is deprecated as of V11. It will not be available in future versions.

Syntax

Mime_Type as C = resolve_mime_type(C file_extension )

Arguments

Mime_Type

A formatted definition of a mime type suitable for use in a page header or response header. The response is "text/html" if the File_Type cannot be identified.

file_extension

A Windows file type in the format: ". XYZ " . Character

Description

The RESOLVE_MIME_TYPE() function returns a properly formatted and legal mime type suitable for use in a page header or response header.

Examples 

If you preview the following page, it will display "text/xml".

<html>
<head>
<meta name="generator" content="Alpha Anywhere HTML Editor">
<title></title>
</head>
<body>
<p> </p>
<%a5 ? RESOLVE_MIME_TYPE( ".xml" ) %>
</body>
</html>

See Also