How do I access post body in WSO2 prototype rest API javascript?

in WSO2 api gateway I want to prototype a few POST requests using inline javascript. I am trying to figure out how to get the post body value which is going to be json. Its a pretty old version of WSO2 (I think v5.0).

//URL: /a/b/{u1}/c?p1=123
mc.setProperty('CONTENT_TYPE', 'application/json');
var u1 = mc.getProperty('uri.var.u1'); 
var p1 = mc.getProperty('query.param.p1');
var postBody = mc.getProperty(???????????);
mc.setPayloadJSON('{ "data" : "' + p1 + '|||' + p2+ '"}');

This script is correctly printing the values if they are in the query string or the URI but cant seem to figure out how to get the POST body.

134 thoughts on “How do I access post body in WSO2 prototype rest API javascript?”

  1. [url=http://buyrealcialis.com/]cialis 10 mg daily[/url] [url=http://buyingsildenafil.com/]sildenafil citrate australia[/url] [url=http://cheapviagrapharm.com/]how much is sildenafil from canada[/url] [url=http://viagramb.com/]viagra brand coupon[/url] [url=http://viviagra.com/]cheapest viagra prices[/url] [url=http://cicialis.com/]cialis canada purchase[/url] [url=http://viagrabm.com/]purchase viagra pills[/url]

    Reply
  2. [url=http://cialisxorder.com/]cialis 50[/url] [url=http://viagradmed.com/]order viagra canadian pharmacy[/url] [url=http://gettadalafil.com/]tadalafil generic in usa[/url] [url=http://cialisvtab.com/]cialis brand online australia[/url] [url=http://genericcialisnorx.com/]daily generic cialis[/url] [url=http://icviagra.com/]viagra 12.5 mg[/url] [url=http://buyepills.com/]amoxicillin for sale online uk[/url] [url=http://ivermectinnew.com/]stromectol ebay[/url]

    Reply
  3. [url=https://buycialist.com/]cialis 10mg daily[/url] [url=https://cialisxorder.com/]buy discount cialis[/url] [url=https://sildenafilsale.com/]buy sildenafil 200mg[/url] [url=https://sildenafilc.com/]generic sildenafil 25 mg[/url] [url=https://ordercialispills.com/]how to buy cialis online in canada[/url]

    Reply
  4. [url=http://unocialis.com/]5mg tadalafil online[/url] [url=http://dwpills.com/]lexapro 10mg tablet[/url] [url=http://kamagrabuyonline.com/]kamagra oral jelly uk delivery[/url] [url=http://startpills.com/]lisinopril 5 mg coupon[/url]

    Reply
  5. [url=https://viagracpill.com/]sildenafil mexico cheapest[/url] [url=https://buyrpills.com/]doxycycline online without prescription[/url] [url=https://bestviagrapills.com/]can you buy over the counter viagra[/url] [url=https://wbapharmacy.com/]online pharmacy in turkey[/url] [url=https://cialisvii.com/]buy cialis online us[/url] [url=https://viagrasm.com/]non prescription viagra[/url] [url=https://thebestviagra.com/]best female viagra tablets[/url] [url=https://viagrawithnoprescription.com/]how to get real viagra[/url] [url=https://viagrabuycheap.com/]generic viagra online usa[/url] [url=https://ordertadalafilpills.com/]where can i buy real cialis[/url]

    Reply
  6. [url=http://viagrabi.com/]buy real viagra online cheap[/url] [url=http://dbpills.com/]metformin tablet price[/url] [url=http://viagrafmed.com/]canadian viagra 200 mg[/url] [url=http://pviagra.com/]sildenafil 150 mg[/url] [url=http://cialisfmed.com/]cialis 20 mg price in india[/url]

    Reply
  7. [url=https://phdtabs.com/]best online pharmacy propecia[/url] [url=https://rxremi.com/]buy amoxicillin 500mg capsules[/url] [url=https://sildenafilvtab.com/]cheap generic viagra 100mg canada[/url] [url=https://unocialis.com/]buy cialis online with mastercard[/url] [url=https://tadalafilxt.com/]tadalafil 5mg coupon[/url] [url=https://startpills.com/]lisinopril 20 mg canada[/url] [url=https://fasttadalafil.com/]cialis 20mg price in mexico[/url] [url=https://viagrabuycheap.com/]buy 1 viagra pill[/url] [url=https://cialisextr.com/]buying cialis in canada[/url] [url=https://buyrxtablets.com/]buy clomid no rx[/url]

    Reply

Leave a Comment