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

How to use custom headers while using chrome driver? #612

Open
svobodad opened this issue May 30, 2019 · 0 comments
Open

How to use custom headers while using chrome driver? #612

svobodad opened this issue May 30, 2019 · 0 comments

Comments

@svobodad
Copy link

Could you please clarify how can I use custom header with Chrome driver the same way I can use it with Phantomjs?

For example I need to use the following headers for my shots:

phantom.customHeaders = {
'X-HLM-GeoIP': '207.7.82.113',
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/12.0 Mobile/15A372 Safari/604.1'
};

How can I use it with Chrome?

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