Forum Discussion
Liberty_Informa
14 years agoRegular Contributor
Not expert in this area but following code is not working. Can you send us corrected one? Wanted to strip off empty tags
if( request == null )
return
// get request content
def content = context.httpRequest.requestContent
// empty content
content = content.replaceAll( "<VersionInformation><Major/><Minor/></VersionInformation><ExecutionContext/>", "" )
// write it back
context.httpRequest.requestContent = content