This content has been marked as final.
Show 1 reply
-
1. Re: method=post for http-gateway
scottdawson Aug 6, 2010 5:42 PM (in response to cosmicwave)Unfortunately POST parameters are not mapped into the QueryParams map like GET parameters are. You can get the POST parameters from the body of the message, so using your example,
new String((byte[])message.getBody().get())
will give:
a=3&b=4
You can use the decode method in java.net.URLDecoder to handle special characters like ampersands and equal signs.
I'm looking for an easy way to parse the parameters from the string (and into a map or something similar). I'll post again if I find something useful or maybe someone else has a recommendation.
Regards,
Scott