title: Adding variables for GET method with curl
body: <p>I'm writing a RESTful API for my webservice.<br>
  When I get a request tot the server, first thing I do is checking the appKey and the appSecret.<br>
  This is not a problem with POST methods because I can add them to the request as follow:<br>
  (This method returns the user's details)</p>
  
  <pre><code>$data = array('appId'=&gt;$appId, 
                'appSecret'=&gt;$appSecret,
                'userId'=&gt;$uid);
  $url = "http://mydomain.com/api/user/".$uid;
  $request = curl_init($url);
  curl_setopt($request, CURLOPT_POSTFIELDS, $data);
  $result = curl_exec($request);
  </code></pre>
  
  <p>My question is how can I (if it's possible) include the data (appSecret, appKey) in a GET method?    </p>
  
  <p>And if not, how can I use a GET method to get user's details and still check the appKey and appSecret on the server?</p>
  
  <p>Thanks!</p>