title: Using cURL to POST to basic form
body: <p>I thought this would be simple but I can't figure it out. I have a form with this structure:</p>
  
  <pre><code>&lt;form name="input" action="DOTHINGS" method="POST"&gt;
  
  &lt;textarea rows="10" cols="30" name="rules"&gt;&lt;/textarea&gt;
  
  &lt;textarea rows="10" cols="30" name="facts"&gt;&lt;/textarea&gt;
  
  &lt;br&gt;&lt;input type="submit" value="Submit"&gt;
  </code></pre>
  
  <p>So I want to post to the rules and facts text areas and submit. I have tried the following:</p>
  
  <pre><code>curl -F "rules=@/directory/file.txt" -F "facts=@/directory/file.txt" http://localhost:1112/
  curl -X POST -d "rules=junktext" http://localhost:1112/
  curl --data "rules=junkdata&amp;facts=junkdata" http://localhost:1112/
  </code></pre>
  
  <p>No matter what I try I get <code>The requested resource could not be found</code> as a response.</p>
  
  <p>I first thought my localhost:1112 was not accessible so I tried variations of that and did a basic <code>curl localhost:1112</code> which returned the content of the site so it seems it's able to access that URL. However I just can't get anything to POST. Is there something wrong with my syntax or with the form itself?</p>