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

Pass in cookies / dump out cookies? #335

Open
skilbjo opened this issue Dec 13, 2024 · 3 comments
Open

Pass in cookies / dump out cookies? #335

skilbjo opened this issue Dec 13, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@skilbjo
Copy link

skilbjo commented Dec 13, 2024

how does lightpanda handle cookies for a given request? ie let's say i make a request to google.com which 301 redirects to www.google.com but sets a cookie, in the subsequent request to www.google.com is the cookie sent/persisted?

can i use lightpanda to pass in cookies?

alternatively, can i use lightpanda cli to dump cookies at the end of a request?

the interface could be something like (to pass in cookies) (interface is up to you, but this is just an idea):

./lightpanda --dump --cookies 'cookie-str [or cookie-json]' 'https://news.google.com'

and to get cookies out:

./lightpanda --dump --dump-cookies --cookies 'cookie-str [or cookie-json]' 'https://news.google.com'

=> 
{
  dom: '<html> ... </html>',
  cookies: 'cookie-json'
}
@takielias
Copy link

@francisbouvier, I am also looking for this. Could you please share how to do it?

@krichprollsch krichprollsch added the enhancement New feature or request label Feb 27, 2025
@krichprollsch
Copy link
Member

Hello 👋
We started the work to support cookies see #448, but it will take a couple of weeks to land in the binary.

@takielias
Copy link

@krichprollsch That's great. Waiting for the release......

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