-
Notifications
You must be signed in to change notification settings - Fork 532
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
Add curl -H/--header option to add a request header one each request #2144
Comments
@theoforger if you're interesting by this issue, you're good to go! This option is a curl option and it makes sense to be exposed by Hurl. For a start, we could implement in a first PR this option: $ hurl --header "foo: bar" test.hurl Multiple headers could be added $ hurl --header "foo: bar" --header "baz:bar" test.hurl That will a a request header It will make also sense to implement it on
This can be redundant with our header syntax
But in the future we plan to implement
Will add a header on every request of the Hurl file |
@jcamiel Sounds good! I'll take this one 😆 |
@jcamiel I noticed that the curl option also supports input through a file: curl -H @filename https://example.com or through stdin: curl -H @- https://example.com Do we want to implement them as well? |
For the moment, it doesn't seem necessary. We can implement it later if someone has a strong need of it! |
@jcamiel Hello again! I just submitted a PR for this. Any feedback is appreciated 🙏 |
@jcamiel Hello again! I'll work on this next. Just want to confirm that it's still relevant before I start 😄 |
Yes it's still OK, I will make an issue for it. This one should be simpler, as the hard work is done is the |
@jcamiel Happy (belated) new year! Just in case you forgot, did you create the issue? 😆 |
Hi @theoforger I've forgotten! I'll make it asap Updated => see #3575 |
@theoforger can you add a quick comment on issue #3575 (it's the only way I will be able to assign it to you...) |
Add support for curl -H/--header option to add a request header on each request:
$ hurl --header "foo: bar" test.hurl
Adding multiple header is possible:
To define: while redundant with header, per request header option should be also possible ?
The text was updated successfully, but these errors were encountered: