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

Modify stream value failed, 0xfe was decoded to 0xc3 0xbe

2 Answers 62 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
ma
Top achievements
Rank 1
ma asked on 17 Dec 2019, 04:07 AM

Hi,

I want to modify the response body value which is stream, but failed.

The stream value is just like MP4, the ascii of head data is "00 00 00 20 66 74 79 70 69 73 6F 6D...".

And I planed to modify them to "FE FE FE FE FE FE FE ....". But when I check the sent data, I found them were changed to "C3 BE C3 BE C3 BE C3 BE C3 BE C3 BE ..."

The following is my JScript code:

var oBody;
oBody = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe";
oSession.utilReplaceRegexInResponse("ftypisom.*",oBody);

// oSession.utilSetResponseBody(oBody);                    // I tried this but failed too...

How could I set response body to any ascii.

Thanks :)

2 Answers, 1 is accepted

Sort by
0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 19 Dec 2019, 01:26 PM

Hi Ma,

Unfortunately, streamed Responses and Requests cannot be modified using Fiddler's Inspectors. This is because Fiddler must buffer messages before passing them along to their destinations. Additionally, when streaming is enabled for a response, each block of data read from the server is immediately passed to the client application. Note that audio and video responses are streamed automatically.

If you need to modify the response before it is sent to the client, you must disable streaming by setting oSession.bBufferResponse=truein either the OnBeforeRequestor OnPeekAtResponseHeadershandlers.

I hope this helps. Please let me know if you have any additional questions. Thank you for using the Fiddler Forums.

Regards,


Eric R | Technical Support Engineer
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
ma
Top achievements
Rank 1
answered on 16 Jan 2020, 01:29 PM

OKļ¼ŒThank you for your answer, I don't have any questions:)

Regards

Tags
Fiddler Classic
Asked by
ma
Top achievements
Rank 1
Answers by
Eric R | Senior Technical Support Engineer
Telerik team
ma
Top achievements
Rank 1
Share this question
or