I have services with soap body. I need to limit the payload size in proxy configuration.
How can I do that?
I don't want JSON parser use as its affecting my soap payload get corrupted.
Answer by deboraelkin
·
Aug 27, 2020 at 11:32 PM
The size of the payload is always included in the content-length header. (RFC 7230, section 3.3.2: Content-Length)
Raise a fault if request.header.content-length is greater than your threshold.
in which measurement need to give payload size value (example like bytes, kb etc )
Answer by Priyadarshi Ajitav Jena · Feb 19 at 08:51 AM
I did set the content-length header in a javascript to 6MB in preflow request and that worked as I expected.
Answer by Sai Saran Vaidyanathan
·
Aug 26, 2020 at 04:34 PM
I don't need the header to be passed. This is actually a restriction in api end for APIs. We don't want specific APIs to send payload bigger than the size. If the heade will send that then it will be the api requester's control.
And don't want to add the configuration in kvm for each proxy
Any property in proxy to configure?