Comments (7)
Проблема с SSL routines:tls_process_server_certificate:certificate verify failed
Решение функцию в get добавить
$options['ssl']=array(
'verify_peer'=>false,
'verify_peer_name'=>false
);
Должно получится так
function get($url)
{
$proxy = null; //"127.0.0.1:8888";
$http["method"] = "GET";
if ($proxy) { $http["proxy"] = "tcp://" . $proxy; $http["request_fulluri"] = true; }
$options['http'] = $http;
$options['ssl']=array(
'verify_peer'=>false,
'verify_peer_name'=>false
);
$context = stream_context_create($options);
$body = @file_get_contents($url, NULL, $context);
return $body;
}
from cloud-mail.ru-downloader.
Пожалуйста, помогите, я не хочу качать 60 гб файлов через маил
from cloud-mail.ru-downloader.
Проблема с SSL routines:tls_process_server_certificate:certificate verify failed
Решение функцию в get добавить
$options['ssl']=array( 'verify_peer'=>false, 'verify_peer_name'=>false );
Должно получится так
function get($url) { $proxy = null; //"127.0.0.1:8888"; $http["method"] = "GET"; if ($proxy) { $http["proxy"] = "tcp://" . $proxy; $http["request_fulluri"] = true; } $options['http'] = $http; $options['ssl']=array( 'verify_peer'=>false, 'verify_peer_name'=>false ); $context = stream_context_create($options); $body = @file_get_contents($url, NULL, $context); return $body; }
Ура! Работает, только вот теперь другая проблема...
Не скачивает из-за файла > 260 символов
from cloud-mail.ru-downloader.
Разобрался, только вот проблема ещё одна. Я живу в Украине, mail ru заблокирован.
В php не разбираюсь, могу ли я купить забугорные прокси вида ip:login:pass и вставить? т.к бесплатные программы имеют ограниченные гб и много не скачаешь.
Если да, то как это сделать?
from cloud-mail.ru-downloader.
строка $proxy = "127.0.0.1:8888"; указываешь прокси
from cloud-mail.ru-downloader.
Ну, а если они приватные вида ip:login:pas, так же?
from cloud-mail.ru-downloader.
Мда, похоже, у меня та же проблема. Как прописать логин и пароль?
from cloud-mail.ru-downloader.
Related Issues (20)
- json_decode return null HOT 1
- Не качает HOT 26
- ERROR: path too long HOT 4
- Неактуальная проверка останавливает работу скрипта
- Формат ссылок у mail.ru поменялся
- Не получается
- Некоректная работа с большими каталогами HOT 4
- Page ID not found HOT 3
- Что ты натворил!!!!
- совместимость с win7
- Не запускается скачивание Page ID not found HOT 1
- как забороть эту ошибку HOT 1
- Не запускается
- а где файл start.bat? HOT 1
- Нет start.bat HOT 2
- How to download a single file from a folder containing many files ? HOT 6
- start.bat missing HOT 1
- start.bat does not exists HOT 2
- input.txt doesn't exist HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-mail.ru-downloader.