Forum Discussion
1 Reply
Sort By
- Hello,
Unfortunately the only way to do this is using groovy. We do not really support groovy scripting but see if the below helps you.
Put the below script in a RequestFilter.filterRequest event. It should do what you are asking for:
def headerValue = context.testCase.getTestStepByName("REST Test Request").httpRequest.messageExchange.getRequestHeaders()["Length"]
def headers = request.requestHeaders
headers.put( "Content-Length", headerValue )
request.requestHeaders = headers