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

Not following redirects #94

Open
adamlytics opened this issue Oct 27, 2017 · 1 comment
Open

Not following redirects #94

adamlytics opened this issue Oct 27, 2017 · 1 comment

Comments

@adamlytics
Copy link

Occasionally the scripts gets a URL that results in a server-side 301 or 302 redirect. When this happens, PhantomJS is not following it and I get the error:

Uncaught exception 'Screen\Exceptions\PhantomJsException' with message 'Unable to load the address!' in microweber/screen/src/Capture.php:259

I am using the following options/flags:

  • ignore-ssl-errors = "true"
  • ssl-protocol = "any"
  • web-security = "true"

It works fine when the URL does not redirect. Any help would be appreciated.

@abdulqadoos9090
Copy link

$screenCapture = new Capture($url);

$screenCapture->setOptions([
'ignore-ssl-errors' => 'yes',
'ssl-protocol' => "any",
'web-security' => "true"
]);
Also working for me

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