On Oct 26, 3:08 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Uldis Bojars a écrit :
Did you have a look to extension :
Live HTTP Headershttp://livehttpheaders.mozdev.org/
to see or ask how they do ?
(don't know how an extension can stop loading a page)
(don't know how a JS script in a page can get information from an
extension)
Thanks. Looking at LiveHTTPHeaders help - found out that they are
tapping into Mozilla's components to add a listener for HTTP requests
and responses. Should be doable for my extension as well.
Note: I only need to access this information from an extension. No need
to access it from a JS script in a page.
cookies ?
One problem with what I am trying to find out (if a user is in a
password protected page) is that there are many ways to authenticate on
a page and HTTP authentication is not even the most widely used. There
are also session cookies and session IDs in URLs, but these may be
different for each site and detecting all of these would be too much
effort. (An alternative is to forget about detecting password protected
pages and just create a blacklist of pages not to ignore).
What about detecting if the current page/connection is encrypted?
Is the fact that the URL starts with "https://" a good indication of
that?
Thanks,
Uldis