title: curl login problems
body: <p>I cant login with this script:</p>
  
  <pre><code>$ch = curl_init();
  
  curl_setopt($ch, CURLOPT_URL, "http://mysite.com/admin/index.php");
  
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, 'action=login_user.php&amp;AU_USRNAME=myname&amp;AU_PWD=secret');
  
  $result = curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>But I cant login. Any ideas what's wrong with that?</p>
  
  <p>That's the form code:</p>
  
  <pre><code>&lt;form name="loginForm" action="login_user.php" method="POST" enctype="multipart/form-data"&gt;
        &lt;table&gt;
          &lt;tr&gt;
              &lt;td class="label"&gt;username&lt;/td&gt;
              &lt;td class="input"&gt;&lt;input type="text" name="AU_USRNAME" value="" size="20" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td class="label"&gt;password&lt;/td&gt;
              &lt;td class="input"&gt;&lt;input type="password" name="AU_PWD" value="" size="20" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
       &lt;div id="buttonGroup"&gt;
  
              &lt;input type="submit" class="buttonWide" value="login" name="auth_do_login" /&gt;
       &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Do you see anything wrong?</p>