I already find answers how to copy images over HTTP, but when I try to copy images over HTTPS then I get this:
Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages: error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)
This is code I use:
copy('https://www.metalacmarket.com/product-img/org/JpUSP3KgvgeeikNheRDi4CRg.jpg', IMAGES_PATH.'JpUSP3KgvgeeikNheRDi4CRg.jpg');
Any idea how to get images over HTTPS?