title: How do I avoid URL globbing with PHP cURL?
body: <p>I have a url (slightly modified) like so:</p>
  
  <pre>
  https://ssl.site.com/certificate/123/moo.shoo?type=456&domain=$GH$%2fdodo%20[10%3a47%3a11%3a3316]
  </pre>
  
  <p>It doesn't work the way I intend it to when passed straight through to PHP cURL because of the brackets.</p>
  
  <p>I managed to run the same URL successfully in the command line like so:</p>
  
  <pre><code>curl -g "https://ssl.site.com/certificate/123/moo.shoo?type=456&amp;domain=$GH$%2fdodo%20[10%3a47%3a11%3a3316]"
  </code></pre>
  
  <p>Is there an option (similar to -g, for disabling globbing) that I can use in PHP cURL? If not, how should I encode or format my URL before passing it to PHP cURL?</p>