error cURL error 35: error:0A00018A:SSL routines::dh key too small #476
juangomes376
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can someone help me? I'm trying to make it work for my use, but some sites that are on a very old server are giving this small DH key error and I can't find how to disable this verification.
`<?php
require './vendor/autoload.php';
use Spatie\Crawler\Crawler;
use Spatie\Crawler\CrawlObservers\CrawlObserver;
use Spatie\Crawler\CrawlProfiles\CrawlInternalUrls;
use Psr\Http\Message\UriInterface;
use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\RequestOptions;
class MyCrawlObserver extends CrawlObserver
{
private int $count = 0; // Contador de links analisados
private array $links = []; // Array para armazenar os links encontrados
}
function crawlWebsite(string $url): array
{
$observer = new MyCrawlObserver();
}
`
Beta Was this translation helpful? Give feedback.
All reactions