diff options
author | gesang <gesang@itinerariummentis.org> | 2024-07-04 01:08:21 +0000 |
---|---|---|
committer | gesang <gesang@itinerariummentis.org> | 2024-07-04 01:08:21 +0000 |
commit | 241fa10dcd49581e3a5bc8fe3f0a3629d1b7b5bf (patch) | |
tree | 68a6ccd0e2ef81bc262c9f5aa9ae0053703dfb67 /scraper/yep.php | |
parent | d13e228d72478745635e7a3e766cd16cc42f2e96 (diff) | |
parent | 53d40c6e4e86fdd8ed86d5fb043b6c93d9c7b3ea (diff) |
Merge branch 'master' of https://git.lolcat.ca/lolcat/4get
Diffstat (limited to 'scraper/yep.php')
-rw-r--r-- | scraper/yep.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/scraper/yep.php b/scraper/yep.php index c8f82f9..bfe347f 100644 --- a/scraper/yep.php +++ b/scraper/yep.php @@ -252,21 +252,30 @@ class yep{ curl_setopt($curlproc, CURLOPT_URL, $url); + // 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, "Accept: */*", "Accept-Language: en-US,en;q=0.5", "Accept-Encoding: gzip, deflate, br, zstd", - "Connection: keep-alive", - "DNT: 1", - "Priority: u=1", - "Origin: https://yep.com", "Referer: https://yep.com/", + "Origin: https://yep.com", + "DNT: 1", "Connection: keep-alive", "Sec-Fetch-Dest: empty", "Sec-Fetch-Mode: cors", "Sec-Fetch-Site: same-site", + "Priority: u=4", "TE: trailers"] ); |