Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHello,
You should be able to access the raw request data, but this contains the headers as well as the request body:
If you need to remove the headers, you can do this as well:
The above should give you just the request body content. Good luck!
Regards,
Dain
eviware.com
You should be able to access the raw request data, but this contains the headers as well as the request body:
def rawRequest = new String( r.rawRequestData )
If you need to remove the headers, you can do this as well:
def rawRequest = new String( r.rawRequestData ).split('\r\n\r\n')[1]
The above should give you just the request body content. Good luck!
Regards,
Dain
eviware.com