Mitesh Shah wrote:

>Hi,
>
>How can we know if we are starting in offline mode? I am using the
>ioservice->GetOffline() to get the status and it works fine when I start
>in offline mode by clicking on the "work offline" checkbox in profile
>manager. But if I don't have more than one profile how can I start in
>Offline mode?  The "network.online" preference doesn't seem to be
>effective. Is there any other way to start in offline mode?
>
>Second question is regarding AsyncOpen. Does it matter to know the type
>of channel/URI before calling AsyncOpen? Will it work for all kind of
>URLs?
>

once you have a nsIChannel, you can call AsyncOpen.  the data will be 
fed to your listener.  once your onStartRequest if called, you can query 
the content-type from nsIChannel.

darin


>
>
>Thanks,
>
>Mitesh
>
>


Reply via email to