diff options
| author | lolcat <will@lolcat.ca> | 2026-06-05 00:18:55 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-06-06 20:28:36 -0700 |
| commit | f855ca2e6f7881d8b257fa4280eb819613059ed8 (patch) | |
| tree | d33ab438ba501004299afde2b34a88f34838e046 | |
| parent | 1d85f91666b0f43d886912c265294348ac385a84 (diff) | |
why does http1 work jej
| -rw-r--r-- | scraper/vsco.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/scraper/vsco.php b/scraper/vsco.php index 8a7f057..083c362 100644 --- a/scraper/vsco.php +++ b/scraper/vsco.php @@ -30,19 +30,18 @@ class vsco{ curl_setopt($curlproc, CURLOPT_HTTPHEADER, ["User-Agent: " . config::USER_AGENT, - "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8", + "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language: en-US,en;q=0.5", - "Accept-Encoding: gzip", + "Accept-Encoding: gzip, deflate, br, zstd", "DNT: 1", "Sec-GPC: 1", "Connection: keep-alive", "Upgrade-Insecure-Requests: 1", "Sec-Fetch-Dest: document", "Sec-Fetch-Mode: navigate", - "Sec-Fetch-Site: same-origin", + "Sec-Fetch-Site: none", "Sec-Fetch-User: ?1", - "Priority: u=0, i", - "TE: trailers"] + "Priority: u=0, i"] ); }else{ @@ -73,8 +72,8 @@ class vsco{ curl_setopt($curlproc, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($curlproc, CURLOPT_TIMEOUT, 30); - // http2 bypass - curl_setopt($curlproc, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); + // http1 bypass?!?!?! + curl_setopt($curlproc, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); $this->backend->assign_proxy($curlproc, $proxy); |
