title: PHP Curl URL $Filter
body: <p>Trying to filter a CURL request and I can't get it to do anything. Here is what I have.</p>
  
  <pre><code>curl_setopt_array($ch, array(
      CURLOPT_URL =&gt; "https://api.adp.com/hr/v2/workers?$filter=workers/workAssignments/assignmentStatus/statusCode/codeValue%20eq%20%27A%27",
      CURLOPT_SSLCERT =&gt; $auth['cert'],
      CURLOPT_SSLKEY =&gt; $auth['key'],
      CURLOPT_RETURNTRANSFER =&gt; true,
      CURLOPT_ENCODING =&gt; "gzip",
      CURLOPT_POST =&gt; "",
      CURLOPT_CUSTOMREQUEST =&gt; "GET",
      CURLOPT_HTTPHEADER =&gt; array(
      'Authorization: Bearer ' . $ADP_token,
      'Accept: application/json',
    ),
  ));
  </code></pre>
  
  <p>I know I have the correct information in the URL but this still returns all results. The URL works in POSTMAN.</p>
  
  <p>Not sure if this helps but curl_getinfo() returns the URL missing the <code>$filter</code>:</p>
  
  <pre><code>[url] =&gt; https://api.adp.com/hr/v2/workers?=workers/workAssignments/assignmentStatus/statusCode/codeValue%20eq%20%27A%27
  </code></pre>
  
  <p>I also can't get a simple $top records to work which looks like below.
  Original URL - <a href="https://api.adp.com/hr/v2/workers" rel="nofollow noreferrer">https://api.adp.com/hr/v2/workers</a>?$top=5</p>
  
  <p>curl_get_info() below</p>
  
  <pre><code>[url] =&gt; https://api.adp.com/hr/v2/workers?=5
  </code></pre>