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

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -