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

referer work or not? #596

Closed
pitmans100 opened this issue Jan 12, 2024 · 4 comments
Closed

referer work or not? #596

pitmans100 opened this issue Jan 12, 2024 · 4 comments

Comments

@pitmans100
Copy link

Hi, I'm trying to set up a referral but it's not working.

Tried this:

$referer = 'https://site.ru/';
$browserFactory->addHeader('referer', $referer);

Tried this:

$referer = 'https://site.ru/';
$referer_options = [
      'referer' => $referer
   ];
$navigation = $page->navigate($url, $referer_options)->waitForNavigation();

For some reason these two cases do not work, the referral is not installed, what am I doing wrong?

@enricodias
Copy link
Member

See #530

@pitmans100
Copy link
Author

pitmans100 commented Jan 13, 2024

See #530

Yes, I saw this message, but I didn’t understand what needs to be written in code, can you give an example please?

@enricodias
Copy link
Member

Like I said in the other ticket, apparently chrome ignores the referer header. That other ticket is still open because we don't have a solution.

@pitmans100
Copy link
Author

I managed to make a referral, on site you can see where referral came from. Now the only question is different, I make a referral with GET, example referal:
https://site.ru/?uid=12341&yip=3456
But referral is still just a URL without a get:
https://site.ru/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants