/    Sign up×
Community /Pin to ProfileBookmark

Remote Login in FF Extension

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!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@ricpMay 02.2007 — "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.
Copy linkTweet thisAlerts:
@NevermoreauthorMay 02.2007 — 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...
×

Success!

Help @Nevermore spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...