title: Use of undefined constant CURLOPT_POST - assumed 'CURLOPT_POST'
body: <p>I am making a cURL request via Kohana 3.2 but I get the following error when it tries to access <code>CURLOPT_POST</code> constant:</p>
  
  <pre><code>Use of undefined constant CURLOPT_POST - assumed 'CURLOPT_POST'
  </code></pre>
  
  <p>From Kohana 3.2 <code>system/classes/kohana/request/client/curl.php</code></p>
  
  <pre><code>public function _set_curl_request_method(Request $request, array $options)
  {
      switch ($request-&gt;method()) {
          case Request::POST:
              $options[CURLOPT_POST] = TRUE;
              break;
          case Request::PUT:
              $options[CURLOPT_PUT] = TRUE;
              break;
          default:
              $options[CURLOPT_CUSTOMREQUEST] = $request-&gt;method();
              break;
      }
      return $options;
  }
  </code></pre>
  
  <p>My application code:</p>
  
  <pre><code>$request = Request::factory($uri);
  $request-&gt;query('key', $key);
  $request-&gt;post($params);
  $request-&gt;method(Request::POST);
  
  // fails here
  $response = $request-&gt;execute();
  </code></pre>
  
  <p>I have tested that curl is active as an extension using:</p>
  
  <pre><code>if (in_array  ('curl', get_loaded_extensions()))
  {
      echo '1';
  }
  else
  {
      echo '0';
  }
  </code></pre>
  
  <p>What is the problem here? I am using Windows 7, PHP 5.4.12, and Apache 2.4.</p>