Forum Discussion
RiteshY
Occasional 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
nmrao
9 years agoChampion Level 3
Can 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.- RiteshY9 years agoOccasional Contributor
I am checking RAW request not the request section. Please see following screencast
Related Content
Recent Discussions
- 5 days ago
- 10 days ago