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

Cookies in CLI #2821

Open
1 task done
matthewdickinson opened this issue Aug 13, 2024 · 2 comments
Open
1 task done

Cookies in CLI #2821

matthewdickinson opened this issue Aug 13, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@matthewdickinson
Copy link

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

Currently, as far as I've seen, there is no support for cookies when running requests from the CLI. This is unfortunate since I have a use-case to run a folder of requests via CLI as part of a test suite. The first request in the folder would log in via an authentication mechanism that results in a cookie being set, and this cookie would be passed on in subsequent requests. However, short of writing unnecessarily complex pre and post request scripts, this is currently not feasible.

I would like Bruno CLI to support cookies for a single invocation of bru. For backwards, compatibility, I would think this would be an additional flag that defaulted to false.

Attached is my PR to add this feature.

Mockups or Images of the feature

I think the call would look like this:

bru run --env Local --use-cookies
@matthewdickinson matthewdickinson added the enhancement New feature or request label Aug 13, 2024
@alan-suchanek
Copy link

alan-suchanek commented Sep 17, 2024

+1 I have the same use case. Without support for cookies, I can't use Bruno effectively in test suites.

@snoeber
Copy link

snoeber commented Oct 22, 2024

+1

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

No branches or pull requests

3 participants