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

Setting arbitrary HTTP header (or request body) in http module #272

Closed
mzpqnxow opened this issue Aug 25, 2020 · 2 comments
Closed

Setting arbitrary HTTP header (or request body) in http module #272

mzpqnxow opened this issue Aug 25, 2020 · 2 comments

Comments

@mzpqnxow
Copy link
Contributor

From what I can tell, it is not currently possible to set an arbitrary header (e.g. a cookie, or some other "custom" header) nor is it possible to send a custom request body (like the body of a post)

Two questions:

  1. Is there some way to do this that I just don't see?
  2. If not, is this something that will be considered for development and/or will you accept a PR?

I realize supporting an arbitrary body takes a little bit more work as you will also need to set the content-length, but do simply add headers should be relatively easy. Is there a chance of this being added any time soon?

I would envision this being implemented as a repeatable option, similar to how curl does it- -H 'SomeHeader: value' -H 'OtherHeader: value2' or for a post body, maybe just -B <non-wrapped base64 string>

Thanks

@mzpqnxow
Copy link
Contributor Author

So I searched open issues for this, but not open PRs. I now see that #68 is open for work on this. I'll leave this open for now until that's complete unless you prefer to close it

@mzpqnxow
Copy link
Contributor Author

This was completed and merged a while ago in #284

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

1 participant