Skip to content

Conversation

@jcamiel
Copy link
Collaborator

@jcamiel jcamiel commented Jan 9, 2026

No description provided.

@jcamiel jcamiel linked an issue Jan 9, 2026 that may be closed by this pull request
@jcamiel jcamiel force-pushed the 2168-add---no-cookie-option branch 3 times, most recently from 31142c2 to f51928a Compare January 11, 2026 19:50
@jcamiel
Copy link
Collaborator Author

jcamiel commented Jan 11, 2026

@fabricereix some quick remarks:

  • even with --no-cookie, we still have functional cookie queries. It seems OK to me as the cookie queries is a helper over Set-Cookie header which we are receiving. OK with you ?
  • even with --co-cookie, we can set cookie over a specific request with [Cookies] section => OK ?

@gcolpart
Copy link

Thanks for this patch!!

I'm taking the liberty of responding to your remarks from my point of view: yes, Cookies: and asserting Set-Cookie: need continue to be possible. The point is only disable Cookie store. And even, I suggest to rename option "--disable-cookie-store".

And I suggest that this option is available from "[Options]" (NOT a cli-only option).

Regards,

@jcamiel
Copy link
Collaborator Author

jcamiel commented Jan 12, 2026

@gcolpart

Thanks for the feedback, appreciated it!

  • for the name: I agree --no-cookie is too vague and --disable-cookie-store is explicit and explains what's we're doing. I like also the convention with --no-xxx (we already have --no-color --no-output, --no-pretty). What about --no-cookie-store or --no-cookie-jar (curl use "cookie jar" wording)?
  • regarding no cookie store per request: I agree also we've to add this.
    But it's not going to be easy because the curl crate (the Rust library we're using to bing to libcurl) doesn't expose what we need (deactivate cookie engine once it's been activated). I created an issue on the project but I highly doubt that it's going to be solved as the crate is at slow pace (merging only libcurl binding updates). We've identified it and we need to code the libcurl Rust binding ourself so we'll be free to implement missing features. We've already another features blocked by the current curl crate. Once we've implemented the curl binding (hopefully for the beginning of the year), we'll be able to add no-cookie-jar per request.
    Another thing: Suppose we'll have this file:
GET http://foo.com

GET http://bar.com
[Options]
no-cookie-jar: true

GET http://foo.com

The option no-cookie-jar on the second request will clear the actual cookie store: cookies set on the first response will not be sent on the third request. I'm not sure if we can do better with the libcurl option CURLOPT_COOKIEFILE

@jcamiel jcamiel force-pushed the 2168-add---no-cookie-option branch from f51928a to 9229a3b Compare January 12, 2026 08:39
@gcolpart
Copy link

Hello,

my 2 cents:

* for the name: I agree `--no-cookie` is too vague and `--disable-cookie-store` is explicit and explains what's we're doing. I like also the convention with `--no-xxx` (we already have `--no-color` `--no-output`, `--no-pretty`). What about `--no-cookie-store` or `--no-cookie-jar` (curl use "cookie jar" wording)?

I prefer "no-cookie-store" because Hurl uses « Cookie store: » in his output.

* regarding no cookie store per request: I agree also we've to add this.
  But it's not going to be easy […]

My main « feature request » was to be able to disable Cookie store for all requests in a file.
I understand it's easy to do with libcurl, but I understand it needs the concept of "global options" for Hurl.

Disable Cookie store just for one request in a .hurl file should be interesting too, good luck for your PR :)

@jcamiel jcamiel changed the title Add --no-cookie option to deactivate cookie storage for one file. Add --no-cookie-store option to deactivate cookie storage for one file. Jan 13, 2026
@jcamiel jcamiel force-pushed the 2168-add---no-cookie-option branch 8 times, most recently from 3e93c40 to a940350 Compare January 18, 2026 17:32
@jcamiel jcamiel marked this pull request as ready for review January 18, 2026 17:33
@jcamiel jcamiel force-pushed the 2168-add---no-cookie-option branch from a940350 to 696b2b6 Compare January 18, 2026 17:36
@jcamiel
Copy link
Collaborator Author

jcamiel commented Jan 18, 2026

/accept

@hurl-bot
Copy link
Collaborator

🕗 /accept is running, please wait for completion.

@hurl-bot
Copy link
Collaborator

✅ Pull request merged with fast forward by jcamiel..

# List of commits merged from Orange-OpenSource/hurl/2168-add---no-cookie-option branch into Orange-OpenSource/hurl/master branch:

  • 696b2b6 Add --no-cookie-store option to deactivate cookie storage for one file.

@hurl-bot hurl-bot merged commit 696b2b6 into master Jan 18, 2026
25 checks passed
@hurl-bot hurl-bot deleted the 2168-add---no-cookie-option branch January 18, 2026 17:56
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

Successfully merging this pull request may close these issues.

Add --no-cookie-store option

3 participants