Antonio Ruiz Martínez wrote: > I would like to know how to manage the sessions with a specific server. > Has my handler to control the sessions? or Is there any facility to > support this?
You'd have to deal with this yourself, I believe. > In the protocol handler I need to get some information from the content > of the web page, that is, I need to recover the value of some tags and > some variables. Is it possible? How? As the protocol handler, you're responsible for creating an nsIChannel for clients to use. If you create a custom channel, you can have it sniff the data it sends to the channel reader easily enough to have it do whatever you want before the reader gets to it. > Finally, after making some tasks, my handler gets an url. > How can I tell firefox to show the content of this page as a result of > the invokation of my handler. This should work automagically if you register the protocol handler with the right contract ID, e.g. "@mozilla.org/network/protocol;1?name=SCHEME". Also, see <http://www.nexgenmedia.net/docs/protocol/> for an example of a protocol being implemented. Jeff _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
