title: "CSRF token missing" when using curl with a Flask app
body: <p>I am trying to submit a form on a Flask app using curl. Unfortunately, I keep running into the "CSRF token missing" error.</p>
  
  <p>I tried:</p>
  
  <p><code>curl -X POST --form csrf_token=token --form data=@file.txt --form submit=submit {url} -v</code></p>
  
  <p>I used a <code>csrf_token</code> from the app while I had it open in a browser. I also looked at <a href="https://flask-wtf.readthedocs.org/en/latest/csrf.html" rel="nofollow">https://flask-wtf.readthedocs.org/en/latest/csrf.html</a> and tried to set <code>X-CSRFToken</code> in the header but still got the same error. Any suggestions for what is the correct way to use curl to feed the token to the flask app?</p>