Hi,
I've similar need as mentioned in another post: https://www.telerik.com/forums/automatic-saving-of-responses-into-autoresponder, but don't want to pile up the AutoResponder. The AutoResponder UI is a simple list view and when I pull SAZ sessions, I'm finding it difficult with other existing rules. I wonder if something can be done programmatically to locate the session in a SAZ file and serve the response accordingly bypassing the UI. I'm using below code snippet to locate a session in the SAZ, but not finding a way to serve the response body stored in SAZ file.
for
(var i1:
int
= 0; i1<sSessions.Length; ++i1)
{
FiddlerObject.log(
"sSessions: "
+ i1 +
": "
+ sSessions[i1].url);
if
(sSessions[i1].url ===
'example.com/default.css'
) {
//FiddlerObject.log("sSessions: " + i1 + ": " + sSessions[i1].GetResponseBodyAsString());
//TODO logic to map oSession.response = response stored in SAZ file
}
}
Can anyone help? The above sample code snippet may not be the best one, and appreciate for improved version.
Cheers,