Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for setting variables based on response data #207

Open
sarumont opened this issue Oct 1, 2021 · 3 comments
Open

Support for setting variables based on response data #207

sarumont opened this issue Oct 1, 2021 · 3 comments

Comments

@sarumont
Copy link

sarumont commented Oct 1, 2021

It would be nice to be able to set variables for a future request (or cd to a path) based on the previous response data. Something like JSONpath syntax would be simple yet effective:

Response body:

{
  "id": "17f96808-886a-452e-bbc7-956d27c6cd9d",
  ...
}

> fooId=$.id

> cd $.id
@nejdetckenobi
Copy link

Oh wow! I never thought this feature would be missing. That'd be a really huge improvement. I don't want to copy the data like JWT token all the time.

@JamilleN
Copy link

JamilleN commented Dec 6, 2024

It has been 3 years, does anybody have any update on this? We started using httpie at work, but this is a feature I see lacking the most comparing to our previous API tool.

@alansikora
Copy link

This is... a huge bummer. I was loving HTTPie until this haha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants