Click to See Complete Forum and Search --> : Remote Login in FF Extension


Nevermore
05-02-2007, 06:29 AM
I'm trying to do a remote login from a Firefox extension. The login would need to do the following:

-Send username/password via POST
-Gather returned cookie
-Set cookie

And would need to do this in the background, without disturbing the page - so probably via xmlHTTP.

I know this is possible; gmail checking plugins must use it, for example. Anyone got any idea how to do it?

Thanks!

ricp
05-02-2007, 08:35 AM
"Any idea on how to do it?"

As in how to create an xmlhttp request? Read this: http://faq.ii.no/xmlhttp

I believe that when running an extension (or Greasemonkey script) you are running in a security zone that allows you to interrogate the returned request even if it's from a remote domain - unlike script run in the Internet Zone.

Nevermore
05-02-2007, 10:33 AM
I've been using xmlHTTP for the rest of the script - no problem. This has just got me baffled; I've looked through every tutorial I could find with no joy. :( I was just hoping maybe someone had done something similar and knew how.

I'll take another crack at it and see if it goes any better...