Forum Discussion
nmrao
Champion Level 3
Have you tried with below statment?
'context.requestContent = reqContent'
'context.requestContent = reqContent'
RiteshY
9 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
- nmrao9 years agoChampion Level 3Can you log and see what is there in reqContent variable? Have it after the url encode statement.
- RiteshY9 years agoOccasional Contributor
log.info reqContent prints encoded request.
- nmrao9 years agoChampion Level 3Then 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.
Related Content
Recent Discussions
- 19 days ago