Thanks for your answer.

Christian Biesinger escribió:
> 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 same concept as in SSL. The first time you connect to a server you 
exchange some messages. After the session is established, then the 
requests are simpler.

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

the one the user is "coming from"...The page where you click to get the 
new content using your protocol handler.

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


ok. thanks a lot.

best regards,
Antonio.
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to