Forum Discussion
cbarath1986
13 years agoNew Contributor
i have written the script to write the request to a file. But, i want to stop the request before it fires and at the same time the request to be written to a file.
i have tried filter request handler,but it filter the request and i got 0-byte file as writtened. Please help me how to stop the request from firing and at the same time, the request should be written to a file.
Script used
def response = context.requestContent
def f = new File("C:\\responses\\IA1_request.xml")
f.write(response, "UTF-8")
i have tried filter request handler,but it filter the request and i got 0-byte file as writtened. Please help me how to stop the request from firing and at the same time, the request should be written to a file.
Script used
def response = context.requestContent
def f = new File("C:\\responses\\IA1_request.xml")
f.write(response, "UTF-8")