title: curl method GET not working
body: <p>I have been trying to get curl to send a GET method from a form.  I have constructed the URL with all the form data concatenated.  If I type in the get request directly into the address bar it works but will not work with the curl.  If i echo the $data I will actually receive an error stating "Object not found!"  I tried displaying curl_error() contents and it return empty.  Thank you very much everyone for your help.  </p>
  
  <p>This is what i have so far:</p>
  
  <pre><code>$url = complete url of get request that works when directly placed into adress bar
  curl_setopt($ch, CURLOPT_URL, $url);
  $data = curl_exec ($ch);
  curl_close ($ch);
  echo $data;
  </code></pre>
  
  <hr>
  
  <p>Thank you for helping me everyone.  I tried the following code and it does say "sucess".  When I echo $data, I see a "sucess" for a split second and then I get the "Object not found!" error.  </p>
  
  <pre><code>$url = complete url of get request that works when directly placed into adress bar
  $ch = curl_init($url);
  if ($ch) {
      echo "Success";
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      $data = curl_exec ($ch);
      curl_close ($ch);
  
  }
  else {
      echo "Could not initialize curl session";
  }
  </code></pre>
  
  <p>I may be getting errors because the the link I forward the GET to will forward it to another link to process the data.</p>