[Project_owners] Help for mimetype code wanted

HJ bugs4hj at netscape.net
Thu Feb 26 19:29:42 EST 2004

Neil <neil at parkwaycc.co.uk> wrote:

>HJ wrote:
>>I am trying to get the mimetype for files, before they load. 
>>mimeType = gMIMEService.getTypeFromURI(aURI);
>This just guesses the type... generally only useful for ftp URLs. 

Yeah I know, that's why I was looking for a more reliable way.

>If you want something more reliable, you'll need to make a HEAD request; 
>the save link as code would be a good starting point.

Ah, I keep forgetting that nice little context menu, maybe because I (almost) never use it. Anyway, thanks Neil.


Introducing the New Netscape Internet Service. 
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need. 

More information about the Project_owners mailing list