cloudquery icon indicating copy to clipboard operation
cloudquery copied to clipboard

Add support for custom http headers (cookies/auth tokens/etc)

Open unixfox opened this issue 6 years ago • 3 comments

I can't currently use the tool on a page behind a login page. Is there a possibility to add cookie or custom HTTP header support so that I can specify a cookie to use the tool on a page that requires for example a login before accessing to it?

unixfox avatar Feb 21 '19 16:02 unixfox

Hi @unixfox I am considering to add the functionality of recording actions and replay for cloudquery. Similar to https://github.com/checkly/puppeteer-recorder. In this way, requests like yours will be possible.

But I am not sure if many people will need this feature.

what are you building using cloudquery?

timqian avatar Feb 22 '19 05:02 timqian

Hey @timqian thank you for your quick reply.

That would great but isn't it a bit overkill for my request? Because if you would just implement page.setCookie() or page.setExtraHTTPHeaders() into cloudquery that would work too.

I plan to use cloudquery on my school's website portal which requires to be logged in with a student account. I'll develop a program that post automatically the school's news to a Facebook messenger group with a lot of students of my class.

unixfox avatar Feb 22 '19 10:02 unixfox

Yeah, It will be a good improvement to have an optional input field to let user input customed header. The code is quite simple, are you interested in sending a PR?

timqian avatar Feb 23 '19 02:02 timqian