Forum Discussion
MarcusJ
Staff
11 years agoHi,
Use the following Groovy script in the event handler RequestFilter.filterRequest:
def count = context.getProperty("httpMethod").requestEntity.message.content.count
for (def i=0; i < count; i++)
{
def bodyPart = context.getProperty("httpMethod").requestEntity.message.content.getBodyPart(i)
bodyPart.disposition = bodyPart.disposition + " ;custompar=\"test\""
}
That will add the custom pararmater to the content dispostion. Link below gives more information on custom event handlers in Ready API.
http://readyapi.smartbear.com/loadui/scripts/intro/event_handlers
Regards,
Marcus
SmartBear Support
jjsudharsan
10 years agoOccasional Contributor
Your solution solved my problem