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 · 0 comments
Open

Pass in cookies / dump out cookies? #335

skilbjo opened this issue Dec 13, 2024 · 0 comments

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'
}
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

No branches or pull requests

1 participant