Skip to content

feat(http-clients)!: Add a cookies argument to send_request - #2352

Draft
Mantisus wants to merge 2 commits into
apify:v2from
Mantisus:cookie-send-request
Draft

Mantisus wants to merge 2 commits into
apify:v2from
Mantisus:cookie-send-request

Conversation

@Mantisus

Copy link
Copy Markdown
Collaborator

Description

HttpClient.send_request and context.send_request take a new cookies argument, the cookies to send and store instead of the session cookies for a single call. In PlaywrightCrawler, they're sent instead of the browser context cookies, and the browser still keeps the response cookies.

A Cookie header passed with a request is now merged with the session cookies. A cookie in the header wins over a session cookie of the same name and isn't stored in the session, and the other session cookies are sent too. An empty Cookie header no longer keeps the session cookies out. The v2 upgrade guide describes the change.

Issues

✍️ Drafted by Claude Code

@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Oct 25, 2026
@Mantisus Mantisus self-assigned this Oct 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants