diff options
| author | lolcat <will@lolcat.ca> | 2025-08-19 23:28:54 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-08-19 23:28:54 -0400 |
| commit | 91ce5c1563edfb18f1dd9547443955464394b26f (patch) | |
| tree | 3da15505c7fd3ac3792167a230b97cd47f560408 | |
| parent | cdf958d29333d448f4521f4d2faa2592b58e9b27 (diff) | |
remove ssl ciphers they bug out the new method
| -rw-r--r-- | scraper/yep.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/scraper/yep.php b/scraper/yep.php index bfe347f..27d5c51 100644 --- a/scraper/yep.php +++ b/scraper/yep.php @@ -255,13 +255,6 @@ class yep{ // use http2 curl_setopt($curlproc, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); - // set ciphers - curl_setopt( - $curlproc, - CURLOPT_SSL_CIPHER_LIST, - "aes_128_gcm_sha_256,chacha20_poly1305_sha_256,aes_256_gcm_sha_384,ecdhe_ecdsa_aes_128_gcm_sha_256,ecdhe_rsa_aes_128_gcm_sha_256,ecdhe_ecdsa_chacha20_poly1305_sha_256,ecdhe_rsa_chacha20_poly1305_sha_256,ecdhe_ecdsa_aes_256_gcm_sha_384,ecdhe_rsa_aes_256_gcm_sha_384,ecdhe_ecdsa_aes_256_sha,ecdhe_ecdsa_aes_128_sha,ecdhe_rsa_aes_128_sha,ecdhe_rsa_aes_256_sha,rsa_aes_128_gcm_sha_256,rsa_aes_256_gcm_sha_384,rsa_aes_128_sha,rsa_aes_256_sha" - ); - curl_setopt($curlproc, CURLOPT_ENCODING, ""); // default encoding curl_setopt($curlproc, CURLOPT_HTTPHEADER, ["User-Agent: " . config::USER_AGENT, @@ -351,6 +344,7 @@ class yep{ "type" => "web" ] ); + }catch(Exception $error){ throw new Exception("Failed to fetch JSON"); |
