title: http post is not working using cUrl (libcurl)
body: <p>I'm making simple http post request using libcurl to index.php file on my web server
  that has the following simple code writing post data to a file </p>
  
  <pre class="lang-php prettyprint-override"><code>if (isset($_POST['abc'])){
      $log="abc.log";
      $h=fopen($log,"w");
      fwrite($h,$_POST['abc']);
      fclose($h);
  }  
  </code></pre>
  
  <p>while my written c++ code implementing http post request is the following</p>
  
  <pre class="lang-c prettyprint-override"><code>    CURL *curl;
      CURLcode res;
      curl=curl_easy_init();
      string url=AnsiString("http://127.0.0.1/curl/index.php?abc=123").c_str();
      string data="abc=3434";
      if (curl) {
  
          curl_easy_setopt(curl, CURLOPT_POST, 1);
          curl_easy_setopt(curl, CURLOPT_POSTFIELDS,AnsiString("abc=3434").c_str());
          curl_easy_setopt(curl, CURLOPT_URL,AnsiString("http://127.0.0.1/curl/index.php").c_str());
          res=curl_easy_perform(curl);
          curl_easy_cleanup(curl);
      }
  </code></pre>
  
  <p>First, posting is enabled <code>curl_easy_setopt(curl, CURLOPT_POST, 1);</code></p>
  
  <p>Second, if I debug this code i get <code>CURL_OK</code> status in <code>res</code> (return value)
  and also TCP 127.0.1:80 will be established everytime i run the code monitoring via <code>netstat -ano 15</code> but the file <code>abc.log</code> is empty</p>
  
  <p>What's wrong with this??
  Haven't you any idea pointing me to the right way?</p>
  
  <p>Thank you
  in advance!</p>