-
Notifications
You must be signed in to change notification settings - Fork 242
Better support for HTTPS websites #66
Comments
Note the pull request solves your TODO |
I generate about 20,000 screenshots a day and was having a problem with some of the sites that were using https-hosted images. Applying the --ssl-protocol=any option completely resolved it. |
mikej165, Per your comment above, I created the file called development.yaml under the config folder, and rasterizer: But it fails to run with the following error message: It would be greatly appreciated if you could share where and how you've added the Phantom options above. |
Have you tried using the full path to the binary. i.e. /usr/bin/phantomjs? |
@mspoodle the current code does not permit to pass options imho, this is why I made a fork/PR With my fork, the option is automatically included by default and is not part of the See also the related diff: When passing options to phantomJS, I discovered that these options must be passed at the beginning. The original code before my PR is
I have also tried to use the It seems you can't call: But instead you can call: I'm a node beginner and never used Maybe @fzaninotto will merge it soon |
@slorber Your solution worked like a charm. Thank you so much. |
See #54
The screenshot service does not work well with most HTTPS urls. Here is a cause:
http://stackoverflow.com/questions/12021578/phantomjs-failing-to-open-https-site
Some exemples:
OK: http://localhost:3000/?url=http://en.wikipedia.org/wiki/User_agent
KO: http://localhost:3000/?url=https://en.wikipedia.org/wiki/User_agent
OK: http://localhost:3000/?url=http://leverich.github.io/swiftislikescala/
KO: http://localhost:3000/?url=https://leverich.github.io/swiftislikescala/
The text was updated successfully, but these errors were encountered: