From b907be444d99e383f20b8b940dbae2ebe7d0fe4b Mon Sep 17 00:00:00 2001 From: Digitaltim | Burhan Date: Fri, 5 May 2023 04:41:47 +0200 Subject: [PATCH 1/2] Update Request.php Add URLENCODED to the URL based Proxy --- src/Engine/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Engine/Request.php b/src/Engine/Request.php index ca03f6d..fc2933f 100644 --- a/src/Engine/Request.php +++ b/src/Engine/Request.php @@ -62,7 +62,7 @@ private function makeSingleRequest(array $proxy = [], string $cookies = '', bool CURLOPT_HTTPHEADER => self::mergeHeaders($this->getHeaders()), CURLOPT_URL => $this->getUrl(), CURLOPT_URL => (array_key_exists('url', $proxy)) ? - $proxy['url'].$this->getUrl() : $this->getUrl(), + $proxy['url'].urlencoded($this->getUrl()) : $this->getUrl(), CURLOPT_HEADER => $detailed, CURLOPT_COOKIE => $cookies, ] From 000dd95ceb675c9c47496ca69fc7a1eecf388a09 Mon Sep 17 00:00:00 2001 From: Digitaltim | Burhan Date: Fri, 5 May 2023 05:17:13 +0200 Subject: [PATCH 2/2] Update Request.php URLENCODE Fix --- src/Engine/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Engine/Request.php b/src/Engine/Request.php index fc2933f..2d5d876 100644 --- a/src/Engine/Request.php +++ b/src/Engine/Request.php @@ -62,7 +62,7 @@ private function makeSingleRequest(array $proxy = [], string $cookies = '', bool CURLOPT_HTTPHEADER => self::mergeHeaders($this->getHeaders()), CURLOPT_URL => $this->getUrl(), CURLOPT_URL => (array_key_exists('url', $proxy)) ? - $proxy['url'].urlencoded($this->getUrl()) : $this->getUrl(), + $proxy['url'].urlencode($this->getUrl()) : $this->getUrl(), CURLOPT_HEADER => $detailed, CURLOPT_COOKIE => $cookies, ]