title: Can I use requests.post to submit a form?
body: <p>I am trying to get the list of stores from this site:
  <a href="http://www.health.state.mn.us/divs/cfh/wic/wicstores/" rel="nofollow noreferrer">http://www.health.state.mn.us/divs/cfh/wic/wicstores/</a></p>
  
  <p>I'd like to get the list of stores that is produced when you click on the button "View All Stores". I understand that I <em>could</em> use Selenium or MechanicalSoup or ... to do this but I was hoping to use requests.</p>
  
  <p>It looks like clicking on the button submits a form:</p>
  
  <pre><code> &lt;form name="setAllStores" id="setAllStores" action="/divs/cfh/wic/wicstores/index.cfm" method="post" onsubmit="return _CF_checksetAllStores(this)"&gt;
  &lt;input name="submitAllStores" id="submitAllStores"  type="submit" value="View All Stores" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>But I have no idea how to write the requests query (or indeed if this is even possible).</p>
  
  <p>Why I have tried so far is variations on:</p>
  
  <pre><code>SITE = 'http://www.health.state.mn.us/divs/cfh/wic/wicstores/'
  data = {'name': 'setAllStores', 'form': 'submitAllStores', 'input': 'submitAllStores'}
  r = requests.post(SITE, data)
  </code></pre>
  
  <p>But this doesn't work.  Any help / advice would be welcome.</p>