title: CURL Get Request with a parameter that contains a GET url
body: <p>I'm trying to make a cURL <code>GET</code> to scrape a Facebook Graph object:</p>
  
  <pre><code>GET https://graph.facebook.com/?id=**OBJECT_URL**&amp;scrape=true&amp;method=post
  </code></pre>
  
  <p>In my case, <code>OBJECT_URL</code> contains <code>GET</code> parameters:</p>
  
  <pre><code>https://www.example.com/og.php?a=b&amp;c=d
  </code></pre>
  
  <p>For that reason I can't have it as a <code>GET</code> parameter in <code>file_get_contents()</code> or <code>CURLOPT_URL</code>, as it'd turn out something like this:</p>
  
  <pre><code>https://graph.facebook.com/?id=**https://www.example.com/og.php?a=b&amp;c=d**&amp;scrape=true&amp;method=post
  </code></pre>
  
  <p>Is there a way to pass it as a <code>GET</code> parameter in a way similar to <code>CURLOPT_POSTFIELDS</code>?</p>