title: request URL with parameters in curl php
body: <p>I want to request for a certain web page content for particular option selected from drop down list.</p>
  
  <p>In my example, I want content from web page where Community and Level are two drop down lists. and I want web page for option <code>Community='SoftwareFactory/Cloude'</code> and <code>Level='V6R2015x'</code>.</p>
  
  <p>My code is </p>
  
  <pre><code>&lt;?php
  // init the resource
  $ch = curl_init('http://e4allds/');
  
  // set a single option...
  $postData = array(
      'Community' =&gt; 'SoftwareFactory/Cloud',
      'Level' =&gt; 'V6R2015x'
  );
  curl_setopt_array(
      $ch, array( 
      CURLOPT_URL =&gt; 'http://e4allds/',
      CURLOPT_POSTFIELDS =&gt; $postData,
      //OPTION1=&gt; 'Community=SOftwareFactory/Cloud',
      //OPTION2=&gt; 'Level=V6R2015x',
      CURLOPT_RETURNTRANSFER =&gt; true
  ));
  
  $output = curl_exec($ch);
  echo $output;
  </code></pre>
  
  <p>But its giving result for default selection. Could anyone please help me how can I pass these parameters to the URL?</p>