Skip to content

Pass in cookies / dump out cookies? #335

Open
@skilbjo

Description

@skilbjo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions