title: cURL and special characters in URL
body: <p>I am using <code>curl_setopt($ch, CURLOPT_URL, $link)</code> for fetching an external site, but there are special characters <code>(&amp;, ?, ;)</code> in some urls and curl not work. </p>
  
  <p>i used <code>urldecode</code> but still no luck, also replaced special characters with encoded ones (for example, <code>%26</code> instead of <code>&amp;</code>), but source site only returns a 404 page.  </p>