HFS: Tipi MIME: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== Cos'è un tipo MIME ? == | == Cos'è un tipo MIME ? == | ||
Un tipo ''MIME'' è, in effetti, un'informazione che descrive il tipo di documento inviato dal web server.<br>Poichè un web server può fornire vari tipi di documento, il tuo browser necessita di un sistema per conoscere lo specifico tipo di documento prima di poterlo visualizzare. | |||
== Non è sufficiente l'estensione del file ? == | == Non è sufficiente l'estensione del file ? == | ||
Sometimes file extension is not enough. For example, In the web environment, when a PHP script generates a jpeg image, you get an URL with a ''.php'' extension. However, the browser knows that the content represents a jpeg image because it gets this information in the http header as a ''MIME type''. | Sometimes file extension is not enough. For example, In the web environment, when a PHP script generates a jpeg image, you get an URL with a ''.php'' extension. However, the browser knows that the content represents a jpeg image because it gets this information in the http header as a ''MIME type''. |
Revision as of 21:04, 7 January 2007
Cos'è un tipo MIME ?
Un tipo MIME è, in effetti, un'informazione che descrive il tipo di documento inviato dal web server.
Poichè un web server può fornire vari tipi di documento, il tuo browser necessita di un sistema per conoscere lo specifico tipo di documento prima di poterlo visualizzare.
Non è sufficiente l'estensione del file ?
Sometimes file extension is not enough. For example, In the web environment, when a PHP script generates a jpeg image, you get an URL with a .php extension. However, the browser knows that the content represents a jpeg image because it gets this information in the http header as a MIME type.