getMimeFromUrl

getMimeFromUrl ( string url ) : string

Get Mime Type from a url. It does not download all the page, juste the HEAD.

Parameters

url

Return value

Example:

• text/css
• text/csv
• text/html
• application/javascript
• image/gif
• image/jpeg
• image/svg+xml
• video/mpeg
• audio/ogg
• application/x-tar
• application/zip
• application/xml