I have implemented a code to get a post body data which has been sent through
x-www-form-urlencoded header on custom
URL. I have used
ApexPages.currentPage().getParameters(); but it returns a parameter MAP. So on generating a string of parameter it re-framing a parameter string in alphabetical order.
Actually I need a parameters in a same order as it has sent. I also have used
URL.getCurrentRequestUrl().getQuery(); but it did not work. Cause the data is getting posted through header. And this function only gets the appended parameters of URL.
I dont have a hold on parameters of post method which I am getting on my custom URL. I am getting these parameters from third party. So i can not include any extra parameters like 'order' or 'serial' in to post data. What i want to do is just to get raw data as it is to post it back to third party for validation. They verifies the string completely.
Is there any method is available to get a raw post data in apex page without changing the order?