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

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -