rewrite some header randomly

1 Answer 57 Views
Android Windows
Renata
Top achievements
Rank 1
Renata asked on 21 Mar 2023, 01:57 AM
hi guys i have one header called x-mobile and value is MARCA=iPhone but i need change iPhone to random values automatically, it seems that with fiddler I could solve this, would it be possible? what would be the best alternative?

1 Answer, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 21 Mar 2023, 06:42 AM

Hello Renata,

 

You can use the Rules tab to create a rule that checks if a header x-mobile contains the desired value. Then you can apply an action to change the value with the wanted string. You can add more matching conditions to create a more complex check (or to randomize the check if the aim is to test different scenarios) and use multiple rules that apply other actions (in your case, a different string value).


Learn more about using the Rules tab in the following article:

https://docs.telerik.com/fiddler-everywhere/mock-server-response

https://docs.telerik.com/fiddler-everywhere/user-guide/rules

https://www.telerik.com/blogs/introducing-new-rule-builder-fiddler-everywhere

 

Regards,
Nick Iliev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Android Windows
Asked by
Renata
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Share this question
or