title: Scraping CodeIgniter website with Curl Error "An Error Was Encountered The URI you submitted has disallowed characters."
body: <p>I am trying to scrape A website, when I send a curl request, it returns the following:</p>
  <pre><code>Error :: An Error Was Encountered The URI you submitted has disallowed characters.
  </code></pre>
  <p>but when I send the request with Postman or I enter it with my browser it returns normal page.
  so now I believe the problem is in my code:</p>
  <pre class="lang-php prettyprint-override"><code>    $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      return curl_exec($ch);
  </code></pre>
  <p>is there any solution; website URL I am trying to get <a href="https://kitchen.sayidaty.net/%D8%A3%D9%83%D9%84%D8%A7%D8%AA-%D8%A7%D9%84%D9%84%D8%AD%D9%88%D9%85" rel="nofollow noreferrer">here</a></p>