Forum Discussion
Nastya_Khovrina
Alumni
9 years agoHi Sandeep,
If I understand you right:
1. No, this code can be used to add headers to a request: https://www.screencast.com/t/kK5M8IwRM
2. To add query parameters to a request you can use the RequestFilter.filterRequest event and the following code:
// get method so we can get the complete URI
def method = context.getProperty( "httpMethod" )
//log.info( method.URI.toString() )
method.URI = new URI("http://10.210.12.122:8080/mjo?include=value?input=value")
context.setProperty( "httpMethod", method )
//log.info( method.URI.toString() )