cli
cli copied to clipboard
Feature request: pre-request script and post-request script
Checklist
- [x] I've searched for similar feature requests.
Enhancement request
Please add pre and post request script.
Problem it solves
Sometimes when working with secure API that needs to create a request signature using complicated stuff (e.g hashing the host, request url, request body, etc) it's tiresome to manually create it and then add it to request header.
Having access to pre-request script, generate the signature, and use the generated signature to a certain header will be useful.
Post-request script: also on the case of secure API, we may need to get a token and that token now needs to be included on every request on certain header. or maybe we've hit a login endpoint and now want to store the JWT token from the response to a variable
Additional information, screenshots, or code examples
Similar to pre-request script in and test-script (post-request script) in postman
Hey @kamalhm, scripting is definitely on our roadmap. Thanks for the feedback!
Has there been any progress on this?
🤞 hope it comes out soon... Looking at https://hoppscotch.io in the mean time