jquery - Firefox simple extension to post data -
i've created simple extension firefox. i've tried send user selected text. on mozilla web site can not find document sending rest data via post or example httpclient. want send selected text server , via server parse it.
var req = request({ url: 'http://localhost:9989/put', content: btoa(json.stringify(res)), overridemimetype: "text/plain; charset=latin1", oncomplete: function (response) { pendingreports -= 1; if (onfinish && pendingreports === 0) { onfinish(); } } }); req.post();
Comments
Post a Comment