Sending POST request in firefox addon (javascript) -



Sending POST request in firefox addon (javascript) -

with firefox addon (javascript) i'm trying send post request server session id back, none of conventional methods seem work, tried xmlhttprequest , getting forms isn't possible because it's internal code. there way working, maybe addon sdk?

references tries:

javascript sending info via post in firefox addon

http post in javascript in firefox extension

with new addon sdk should utilize new request api instead of xmlhttprequest. new interface lot easier use, too.

here quick example:

// create sure gets executed before making request var request = require("sdk/request").request; request({ url: "http://example.com/hello-world.php", content: { hello: 'world' }, oncomplete: function (response) { console.log( response.text ); } }).post();

i suggest may have @ mdn tutorial: getting started

javascript post firefox-addon firefox-addon-sdk

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -