title: CURL: How to input type="submit"
body: <p>I'm having a hard time understanding how to submit something using curl. I have already logged in successfully using this code:</p>
  
  <pre><code>curl $HOST -s -L -b $COOKIE -c $COOKIE -d "login=submit&amp;login_name=$USER&amp;login_password=$PASS" &gt; /dev/null
  &lt;input name="login" type="hidden" id="login" value="submit" /&gt;
  </code></pre>
  
  <p>but when I try something similar with another page it doesn't work, it's driving me nuts:</p>
  
  <pre><code>curl $RSS -s -L -b $COOKIE -c $COOKIE -F "submitrssauto=doit"  -o rss
  
  &lt;form  name="submitrss" action="" method="post"&gt;
      &lt;input type="submit" name="submitrssauto" id="submitrssauto" value="doit" class="buttons"&gt;
      &lt;input type=hidden name="allow_main" value="1"&gt;
      &lt;input type=hidden name="allow_rating" value="1"&gt;
      &lt;input type=hidden name="allow_comm" value="1"&gt;
      &lt;input type=hidden name="lastdate" value="1345109704"&gt;
      &lt;input type=hidden name="id" value="4"&gt;
      &lt;input type="hidden" name="user_hash" value="e6bf03ffeb6865eadb62eb9d7d99c88e" /&gt;
      &lt;input type=hidden name="text_type" value="1"&gt;
  &lt;/forum&gt;
  </code></pre>
  
  <p>php code:</p>
  
  <pre><code>                echo &lt;&lt;&lt;HTML
  
      &lt;br /&gt;&amp;nbsp;&amp;nbsp;
  &lt;form  name="submitrss" action="" method="post"&gt;
          &lt;input type="submit" name="submitrssauto" id="submitrssauto" value="doit" class="buttons"&gt;
          &lt;input type=hidden name="allow_main" value="{$rss['allow_main']}"&gt;
          &lt;input type=hidden name="allow_rating" value="{$rss['allow_rating']}"&gt;
          &lt;input type=hidden name="allow_comm" value="{$rss['allow_comm']}"&gt;
          &lt;input type=hidden name="lastdate" value="{$xml-&gt;lastdate}"&gt;
          &lt;input type=hidden name="id" value="{$id}"&gt;
          &lt;input type="hidden" name="user_hash" value="$dle_login_hash" /&gt;
          &lt;input type=hidden name="text_type" value="{$rss['text_type']}"&gt;
  &lt;/forum&gt;
  HTML;
  </code></pre>
  
  <p>this is what I've tried so far:</p>
  
  <pre><code>   curl $RSS -s -L -b $COOKIE -c $COOKIE -F "submitrssauto=doit"  -o rss
      curl $RSS -s -L -b $COOKIE -c $COOKIE -d "submitrssauto=doit"  -o rss
      curl $RSS -s -L -b $COOKIE -c $COOKIE -o rss -d "submitrssauto=doit&amp;allow_main=1&amp;allow_rating=1&amp;allow_comm=1&amp;lastdate=1345109704‌​&amp;id=4&amp;user_hash=e6bf03ffeb6865eadb62eb9d7d99c88e&amp;text_type=1"
  </code></pre>