title: Passing a CSRF token into requests.post()
body: <p>I saw this post - <a href="https://stackoverflow.com/questions/13567507/passing-csrftoken-with-python-requests">Passing csrftoken with python Requests</a></p>
  
  <p>I've been working through it trying to make it work for Greenhouse. I'm trying to build a script that will automate profile creation.</p>
  
  <p>I can fetch data using GET and cookies, but I think I'm I'm getting stuck with X-CSRF. I downloaded the Live HTTP headers plugin for Mozilla to get the CSRF token, but I'm unsure how to pass it in.</p>
  
  <p>So far what I have:</p>
  
  <pre><code>csrf = 'some_csrf_token'
  cookie = 'some_cookie_id'
  data = dict('person_first_name'='Morgan') ## this is submitting my name on the form
  url = 'https://app.greenhouse.io/people/new?hiring_plan_id=24047'  ##submission form page
  headers = {'Cookie':cookie}
  
  r = requests.post(url, data=data, headers=headers)
  </code></pre>
  
  <p>Any thoughts how I should construct my requests.post? </p>