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?

Could you explain what you mean with "sessions"? Generally browsers 
don't have such a concept.

The way protocol handlers work is, basically, that they get a URL and 
need to hand back some contents. They can get the content any way they 
want, and do other stuff too if they want.

> 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?

Depending on which web page you mean here, that is hard or easy. Do you 
mean the one the user is "coming from", or the one the user is "going to"?

> 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.

Well, by creating a channel for that URL, asyncOpening it with your 
stream listener, and calling the stream listener functions that were 
passed to your asyncOpen implementation with your own channel 
implementation as the request argument.


-- 
All the world's a stage,
And all the men and women merely players:
They have their exits and their entrances;
And one man in his time plays many parts, [...]     --W. Shakespeare
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to