I want to detect the content type of a URI and decide where to load
the page or not based on what it is.

I thought I might be able to to it in
nsIWebProgressListener::OnStateChange(..) when I get a STATE_START bit
by asking nsIHttpChannel::GetRequestHeader() for the "Content-Type"
header but this fails.

Can anyone suggest what I'm doing wrong or tell me another way to do
this?

Thanks.

C.

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to