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

using ${data} in header/body does not work #18

Open
amalaguti opened this issue May 4, 2021 · 2 comments
Open

using ${data} in header/body does not work #18

amalaguti opened this issue May 4, 2021 · 2 comments

Comments

@amalaguti
Copy link

I have the following header using a parameter from ${data}, this does not work
X-Xsrftoken: ${data.xsrf}

Just read the TODO: Support request parameters from config and/or data

Wondering if there are plans to support it ?

@palto42
Copy link

palto42 commented Oct 24, 2024

I faced the same issue and found that it seems to partially work.
I have two data variables, one extracted from a previous http-step result using jq log filter, and the second extracted from bash script also with jq log filter.
The first data value is inserted in URL of the http-step, but the second is always blank.
I can use both values in a later shell script step.

I tested this with latest http-step version 1.1.6

@palto42
Copy link

palto42 commented Oct 24, 2024

@amalaguti I fixed it for my use case.

The problem is that you can use the http-step as "node step" or "workflow step".
The script step I used to create extra data, is always a "node step" and it's not possible to pass data between a workflow step and a node step.

After changing the http-step to be from the category "node-step" to pass the data generated by some other "node type step".

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

2 participants