Friday, November 3, 2017

Fix: PHPCrawl can not crawl https(SSL) websites

Without this fix, PHPCrawl can not crawl https websites.

Citation from a web forum:
I was having massive Problems crawling SSL-Sites after a PHP-version update. After a bit of hacking I found the Error: The socket was returning 'Host unreachable'
Solution:
in PHPCrawlerHTTPRequest.class.php Row 551:
Replace 'SNI_server_name' with 'peer_name'
SNI_server_name is not supported by PHP > 5.6.0.
Works like a charm now, hope this helps someone else. Thank you, Uwe, for your wonderful tool..
Peter