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

Fiddlercore replace request NOT responce

3 Answers 126 Views
Windows
This is a migrated thread and some comments may be shown as answers.
asia
Top achievements
Rank 1
asia asked on 18 Aug 2017, 01:27 AM

So i have the below request

 

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="default" SOAP-ENV:encodingStyle="default">
<SOAP-ENV:Body>
<login user="3602e743d1ba76fb" password="888888" terminal_id="3602e743d1ba76fb" terminal_type="1" mac="08:00:27:db:56:ce" netmode="4" soft_ver="000 pad_1.2.09 eng..20170714.181621" hard_ver="376 KTU84P" epg="epo" token="SKeXAEmnvgBKp74A" />
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 

How can i replace parts of this in c# such as 3602e743d1ba76fb with another number ?

is this correct ? it doesn't seem to work

 

  Fiddler.FiddlerApplication.BeforeRequest += delegate(Fiddler.Session oS)
            {

                oS.bBufferResponse = true;
                oS.utilDecodeRequest();
                oS.utilReplaceInRequest("3602e743d1ba76fb", "4c1d80a8f35e6a4d");   //userid
                oS.utilReplaceInRequest("08:00:27:db:56:ce", "38:1d:d9:9a:51:a2");   //mac


            };

 

 


3 Answers, 1 is accepted

Sort by
0
asia
Top achievements
Rank 1
answered on 23 Aug 2017, 09:45 AM
nevermind..
0
Alexander
Telerik team
answered on 23 Aug 2017, 11:49 AM
Hello,

This seems to be right and should work. Where are you using this code? In FiddlerScript or you are using FiddlerCore?

Regards,
Alexander
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
asia
Top achievements
Rank 1
answered on 23 Aug 2017, 12:35 PM

fiddlercore, let me try again please see my other post 

 

""fiddlercore c# save response to file - create new request"" its urgent !

Tags
Windows
Asked by
asia
Top achievements
Rank 1
Answers by
asia
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or