title: how to get json data with curl and php from another domain?
body: <p>i am triong to do a request to a page and get back some results using curl.</p>
  
  <p>with javascript i could use <code>$.getJSON</code> like so:</p>
  
  <pre><code>$.getJSON('https://ajax.googleapis.com/ajax/services/search/images?q=fuzzy%20monkey&amp;v=1.0&amp;callback=?', function(response) {
      console.log(response.responseData);
  });
  </code></pre>
  
  <p>but in case javascript is not enables i would like to use CURL. im just not sure how.</p>
  
  <p>also i don't necessarily need the response to be json, xml can be ok also</p>
  
  <p>any ideas?
  Thanks</p>
  
  <p>edit: also i don't really want to use <code>file_get_contents()</code> but pure curl</p>