Forum Discussion
nmrao
Champion Level 1
10 years agoHave you tried with below statment?
'context.requestContent = reqContent'
'context.requestContent = reqContent'
RiteshY
10 years agoOccasional Contributor
If I try to get request content in SubmitListener.beforeSubmit using context.requestContent. It returns blank.
I tried setting context.requestContent in SubmitListener.beforeSubmit but it does't work either.
context.requestContent = reqContent also doesn't work in RequestFilter.filterRequest
-Ritesh
- nmrao10 years ago
Champion Level 1
Can you log and see what is there in reqContent variable? Have it after the url encode statement.- RiteshY10 years agoOccasional Contributor
log.info reqContent prints encoded request.
- nmrao10 years ago
Champion Level 1
Then it should be able to set the request using:
context.requestContent = reqContent
You need to check the raw request, not in the request editor if the change has happened or not, just in case it was not check in this way earlier.