title: CURL - no url set
body: <pre><code>$param = 'get.php';
  $url = 'http://mysite.org/'. $param;
  $__post = 'option=1&amp;option2=225';
  </code></pre>
  
  <p>mysite.org/get.php - exists for 100%, when I open them in browser everything works.</p>
  
  <pre><code>$c = curl_init();
  curl_setopt($c, CURLOPT_URL, $url);  
  curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($c, CURLOPT_POST, true);
  curl_setopt($c, CURLOPT_POSTFIELDS, $__post);
  $result = curl_exec($c);
  curl_close($c);
  print_r($result); // show 404 o_O
  </code></pre>
  
  <p>I test it using sniffer and CURL pass URL :</p>
  
  <pre><code>http://mysite.org
  </code></pre>
  
  <p>not</p>
  
  <pre><code>http://mysite.org/get.php
  </code></pre>
  
  <p>when I do somethink like that : </p>
  
  <pre><code>curl_setopt($c, CURLOPT_URL,'http://mysite.org/get.php'); 
  </code></pre>
  
  <p>everything works fine... so... please help me :D What I do wrong, certainly it is a small error but I don't see where he is :/</p>