This is a migrated thread and some comments may be shown as answers.

log-drop-request-body not working in OnBeforeRequest if request is aborted

4 Answers 161 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Graeme
Top achievements
Rank 1
Graeme asked on 15 Aug 2014, 04:26 PM
I have
oSession["log-drop-request-body"] = "yes";
oSession["log-drop-response-body"] = "yes";
oSession.bBufferResponse = false;

set for all sessions in OnBeforeRequest(oSession: Session) and this works perfectly unless the session "was aborted by the client, Fiddler, or the Server". If the session is aborted, the request body is logged.

  1. Should the body be dropped if it is an aborted session?
  2. Is there a way of discarding the body even if the session was aborted?
  3. Perhaps I should try dropping the body in OnPeekAtRequestHeaders(), OnReturningError() or even OnDone()?

4 Answers, 1 is accepted

Sort by
0
Graeme
Top achievements
Rank 1
answered on 15 Aug 2014, 04:40 PM
I just tried putting those session flags in OnReturningError(), but the request body was still logged...
0
Eric Lawrence
Telerik team
answered on 18 Aug 2014, 05:37 PM
Hello, Graeme--

Thanks for the bug; log-drop-request-body is handled properly in the error codepath in the 2.4.9.3 build. For now, you can simply set oSession.requestBodyBytes = Utilities.emptyByteArray; manually for the same effect.

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Graeme
Top achievements
Rank 1
answered on 19 Aug 2014, 09:35 AM
Thanks Eric,

I assume you're suggesting that I put that line in OnReturningError() (that seems to work). Is that right?
0
Accepted
Eric Lawrence
Telerik team
answered on 19 Aug 2014, 02:31 PM
Hi, Graeme--

Yup. Or upgrade to v2.4.9.3 later today.


Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Fiddler Classic
Asked by
Graeme
Top achievements
Rank 1
Answers by
Graeme
Top achievements
Rank 1
Eric Lawrence
Telerik team
Share this question
or