Code Monkey home page Code Monkey logo

Comments (7)

kactetus avatar kactetus commented on July 18, 2024 1

Проблема с 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.

jekulyaa avatar jekulyaa commented on July 18, 2024

Пожалуйста, помогите, я не хочу качать 60 гб файлов через маил

from cloud-mail.ru-downloader.

jekulyaa avatar jekulyaa commented on July 18, 2024

Проблема с 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.

jekulyaa avatar jekulyaa commented on July 18, 2024

Разобрался, только вот проблема ещё одна. Я живу в Украине, mail ru заблокирован.
В php не разбираюсь, могу ли я купить забугорные прокси вида ip:login:pass и вставить? т.к бесплатные программы имеют ограниченные гб и много не скачаешь.
Если да, то как это сделать?

from cloud-mail.ru-downloader.

kactetus avatar kactetus commented on July 18, 2024

строка $proxy = "127.0.0.1:8888"; указываешь прокси

from cloud-mail.ru-downloader.

jekulyaa avatar jekulyaa commented on July 18, 2024

Ну, а если они приватные вида ip:login:pas, так же?

from cloud-mail.ru-downloader.

TheWishMaster123123 avatar TheWishMaster123123 commented on July 18, 2024

Мда, похоже, у меня та же проблема. Как прописать логин и пароль?

from cloud-mail.ru-downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.