title: CURL working, JSON not working
body: <p>I have a Json get request that works perfectly when I use CURL to send it over php , but when I try to do the same thing with getJSON (which is the requirement), all I get back is status is error when I use the code below.  How can I know exactly what the error is ?  I dont know if I am sending the request with wrong parameters of if its a time out, or what it could be.  Thanks</p>
  
  <pre><code>         $.getJSON(url, function(data,status,xhr) {
            if (status == "success"){
       alert ("got the data"+data);
  }else if (status == "timeout"){
      alert("Something is wrong with the connection");
  }else if (status == "error" || status == "parsererror" ){
      alert("An error occured");
  }else{
      alert("datatosend did not change");
  }       
           })
  </code></pre>