I don’t know enough about it to explain in great detail but POST Parameters are different from a json or xml payload. They usually have a content type such as application/x-www-form-urlencoded and are simple key-value pairs like you would see in the query of a GET.
parameter=value&also=another
So even though they are also technically passed in the body it is much simpler and less costly than trying to look into and parse through a more complicated body like json or xml which would introduce significant overhead and so we do not do and so you cannot create request attributes off of them.
Post parameters are being send as part of the request header, while JSON/XML payload is sent as part of the body itself. This is why request attributes (until changed and I’m not aware of any plan to do so) will not work on post parameters for you. What you should do, is capture these values on the server side processing.
Hello all.. since this is an older forum post, I"m just wondering if it is still the case that a request attribute cannot be based off of a JSON or SOAP/XML request body?
Request bodies are still a performance issue, so we still do not support this. The best option is (still) to find a method that accesses the data of interest and capture the argument or return value.
It still applies to this day - and likely will for the foreseeable future. I guess this is a deliberate design decision as to limit the OneAgent overhead on the monitored process because that would mean it would have to parse the request body (which could be potentially huge).