Giter Site home page Giter Site logo

Comments (8)

justinmoore avatar justinmoore commented on June 14, 2024

hey @workfast108, to replace multiple values within one request, set all of the values you want replaced within the "Base Replacement" table. Each replacement in the "Base Replacement" table will be applied to the request at the same time. Afterwords, AutoRepeater will make a new request for each replacement set within the "Replacements" with every replacement in the "Base Replacement" table already applied. This should allow you to replace multiple headers and cookies at the same time.

Thanks,
Justin

from autorepeater.

workfast108 avatar workfast108 commented on June 14, 2024

OMG ,Honestly your quick response, just humble me, you are great Bro. please let me juz give you example of what i wanna do here: Please what is the Best Match Up to use in this scenario
I need to Replace to Cooke Value and One Header Value all at once, i mean at one time how do i set the Base Replacement and the second Replacement
In the Header Side: i want to Replace
Header Name Header Value
X-CSRF-Token: 91053b50cfc2e0ee0

inside the Cookie
cookie name Cookie value
Workfast_website= 2a23c7487acb7467c406235adf57

cookie Name Cookie value
csrf_token_website= 91053b50cfc2e0ee

i want to Replace all the above cases with
Header name Header Value
X-CSRF-Token: c5c047284d2b51f

======================================================

Cookie Name Cookie Value
workfast_website= cafef35317e0b1b89b65199

Cookie name Cookie Value
csrf_token_website= c5c047284d2b51fa041822b9e2

Thank You

from autorepeater.

justinmoore avatar justinmoore commented on June 14, 2024

hey @workfast108,

If I'm understanding correctly, you'd want something along the lines of:

Base Replacements

Type: Request Header
Match: X-CSRF-Token: 91053b50cfc2e0ee0
Replace: X-CSRF-Token: c5c047284d2b51f

Type: Match Cookie Name, Replace Value
Match: Workfast_website
Replace: cafef35317e0b1b89b65199

Type: Match Cookie Name, Replace Value
Match: csrf_token_website
Replace: c5c047284d2b51fa041822b9e2

Replacements

You don't need to specify any replacements here if you only want to change those three values, however, any additional replacements here will create new requests with the modifications from above applied.

Thanks,
Justin

from autorepeater.

workfast108 avatar workfast108 commented on June 14, 2024

@justinmoore-ncc Thank You for Everything, it worked Perfectly well, Please i have this last Question to ask you , it as to do with ID's , assuming ID's is in the URL Parameters, and i have some ID's as a Post request body Parameter's as well.

suppose (1) URL is like PUT /users/459461979/ and i want to replace it with " PUT /users/411839370/

and (2) the Post request body , i have things like ,"user_id":459461979, and what to replace it with " "user_id: 411839370
what "Type" combination Best Suit the URL scenario and what "Type" Combination Best Suit the Post body request Parameter?

Thank You
Dere Sewa

from autorepeater.

justinmoore avatar justinmoore commented on June 14, 2024

Hey @workfast108,

The following replacement will replace all instances of "459461979" with "411839370".

Base Replacements

Type: Request String
Match: 459461979
Replace: 411839370
Which: Replace All

Thanks,
Justin

from autorepeater.

workfast108 avatar workfast108 commented on June 14, 2024

@justinmoore-ncc Thanks for your great response i appreciate

Warm regards
Dere Sewa

from autorepeater.

justinmoore avatar justinmoore commented on June 14, 2024

@workfast108 no problem, I'm happy to help.

from autorepeater.

99smith avatar 99smith commented on June 14, 2024

Hi @justinmoore

I have a situation where I need to use - match parameter name and replace its value .

For example I have GET request like this: GET https://exmple.com?dateStart=xyzee

Now when I use - match parameter name and replace its value and set parameter name as dateStart and value as superman

Autorepeater just works perfectly fine : https://exmple.com?dateStart=superman

Now the problem is

I have a post request in which there is json body like this

{"userId":"US-DG46","dateStart":"2022-03-20","dateEnd":"2022-04-20"}

Now for the same above condition autorepeater doenot replace value of dateStart in json body parameter.

How can I achive this . Please help !

Thanks you

from autorepeater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.