Dynamic AutoResponder

107 views
Skip to first unread message

Naphtul

unread,
Mar 3, 2010, 5:25:24 PM3/3/10
to Fiddler
Hi,

The responses I am getting from the server contain timestamp in the
header.
Can I somehow add parameters to the DAT file to use some variables
like local time sent back to me?

Thanks,
Naphtul

EricLaw

unread,
Mar 3, 2010, 5:40:33 PM3/3/10
to Fiddler
The AutoResponder doesn't have this feature, but the AutoResponder is
designed for simplicity.

You could write a little bit of script which modifies the HTTP
Response after the AutoResponder has loaded it. So, you could, for
instance, write an OnBeforeResponse handler which modifies the
response before returning it to the client.

e.g. something like this. Click Rules > Customize Rules >
OnBeforeResponse.

//http://www.fiddler2.com/fiddler/dev/scriptsamples.asp
if (oSession.urlContains("something-i-auto-respond-to.asp))
{
oSession.utilReplaceInResponse("%timestamp%", (new
Date()).toString());

Reply all
Reply to author
Forward
0 new messages