Forum Discussion
SmartBear_Suppo
11 years agoSmartBear Alumni (Retired)
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:
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
Related Content
- 2 years ago
- 9 months ago
Recent Discussions
- 4 days ago