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

Cookie Support #19

Open
domenukk opened this issue Jul 14, 2020 · 2 comments
Open

Cookie Support #19

domenukk opened this issue Jul 14, 2020 · 2 comments

Comments

@domenukk
Copy link

It would be great if you could specify cookies that are used for each request in urlgrab.
Maybe even have a session that adds new cookies along the way (for csrf nonces, etc.)

@Haones
Copy link

Haones commented Aug 7, 2020

I would also suggest to do it in the same way as httpx or ffuf does.
Replace -user-agent option with -H option where user can supply any header he wants, like:
> urlgrab -url google.com -H 'Cookie: cookie1=a; cookie2=a' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0' -H 'Authorization: Bearer ...'

@domenukk
Copy link
Author

domenukk commented Aug 7, 2020

Setting headers is helpful, however that doesn't give you cookies you collect while surfing, such as csrf tokens

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

2 participants