static
function
OnBeforeResponse(oSession: Session) {
if
(oSession.uriContains(
"google.com"
)) {
FiddlerApplication.Log.LogString(
"before "
+oSession.GetResponseBodyAsString());
oSession.utilSetResponseBody(
"empty"
);
FiddlerApplication.Log.LogString(
"after "
+oSession.GetResponseBodyAsString());
}
}
hi.
i am trying to chage response body from third party website.
in fiddler log i see that response body is changed, but browser receives unchanged response body.
can anybody to help me with my issue?
6 Answers, 1 is accepted
If you disable Streaming, it should work as you expect.
Regards,
Eric Lawrence
Telerik


but i have another issue:
i cannot access some sites with fiddler certificate, i got sec_error_unknown_issuer
particularly in mozilla a dont have an option to add security exception.
For browsers like IE and Chrome to trust Fiddler's root certificate, you must accept the prompt that is shown when you first enable HTTPS decryption inside Fiddler.
For Firefox, which does not respect the Windows Certificate store, you must manually trust Fiddler's root certificate: http://www.telerik.com/blogs/configuring-firefox-for-fiddler
Regards,
Eric Lawrence
Telerik

Hi
I have saved my working response usingbefore response and the complete response is saved to fiddler captures folder
Now the task is I want to send this captured response back to the client, I have tried this by using utilsendresponse and loadresponsefromfile etc but I am not able to send my captured response to client. I have disabled streaming as well. Kindy help how can I sendthis dummy response to client
Have you tried to use the AutoResponder feature of Fiddler?
In this blogpost you can find how to use it to change the response to the client. Can you give it a try and see if this is what you're looking for?
Regards,
Kammen
Progress Telerik