title: Issue a POST request with url_for in Flask
body: <p>I'm trying to issue a POST request within a <a href="http://jinja.pocoo.org/" rel="nofollow noreferrer">Jinja</a> template in <a href="http://flask.pocoo.org/" rel="nofollow noreferrer">Flask</a>. However, parameters are passed in via GET by default, and this particular method only accepts POST requests.</p>
  
  <p>I tried specifying <code>_method</code>, as below, but it still passes the parameter with GET instead of POST.</p>
  
  <pre><code>&lt;li&gt;&lt;a href = "{{ url_for('save_info', _method='POST', filepath=s.name ) }}"&gt;&lt;div class="nodes"&gt;{{ s.title}} - {{ song.owner }}&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>(The error message is the same whether or not I <code>specify _method</code>).</p>