Skip to content

docs: clarify that cookies need domain set to match - #22621

Closed
bagder wants to merge 3 commits into
masterfrom
bagder/cookies-need-domain
Closed

bagder wants to merge 3 commits into
masterfrom
bagder/cookies-need-domain

Conversation

@bagder

@bagder bagder commented Aug 19, 2026

Copy link
Copy Markdown
Member

Especially important if reading cookies from HTTP headers, which is a style we discourage.

Reported-by: accl on hackerone

Especially important if reading cookies from HTTP headers, which is a
style we discourage.

Reported-by: accl on hackerone
@bagder
bagder requested a lite review from Copilot August 19, 2026 07:37
@bagder
bagder marked this pull request as ready for review August 19, 2026 07:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates curl and libcurl documentation to better describe the pitfalls of loading cookies from HTTP header-style (Set-Cookie) files, and to steer users toward safer cookie file formats.

Changes:

  • Rewords the CURLOPT_COOKIEFILE documentation around domain matching for header-style cookie input.
  • Updates the --cookie documentation to explicitly discourage the HTTP header-style format and to reword domain matching behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/libcurl/opts/CURLOPT_COOKIEFILE.md Rewords guidance about importing cookies from header-style files and when such cookies get sent.
docs/cmdline-opts/cookie.md Strengthens guidance discouraging header-style cookie files and rewords the domain-matching explanation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/libcurl/opts/CURLOPT_COOKIEFILE.md Outdated
Comment thread docs/cmdline-opts/cookie.md Outdated
Comment thread docs/cmdline-opts/cookie.md Outdated
bagder and others added 2 commits August 19, 2026 09:46
words

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@bagder bagder closed this in fc6c67c Aug 19, 2026
@bagder
bagder deleted the bagder/cookies-need-domain branch August 19, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants