title: Adding a product to cart on Supreme via POST requests in Python - Request not working
body: <p>I am trying to make a bot in Python that can add a product to my cart on Supreme upon detection. I want this to be efficient, and when I try to use HTTP post requests to get the job done, I receive response code 200 (OK) but the product isn't added in my basket.</p>
  
  <p>I have tried this with both the Python requests module and the selenium requests module. The code is below:</p>
  
  <pre><code>post_headers = {'User-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36', 'x-requested-with': 'XMLHttpRequest', 'content-type': 'application/x-www-form-urlencoded'}
  post_data = {"utf-8": "%E2%9C%93", 's': size_id, 'st': style_id, "X-CSRF-Token": csrf, "commit": "add to cart"}
  url = "https://www.supremenewyork.com/shop/{productid}/add".format(productid=id)
  add_to_cart = session.post(url, headers=post_headers, data=post_data)
  </code></pre>
  
  <p>The response for <code>add_to_cart</code> is the HTTP code 200 (OK) but when I run <code>print(add_to_cart.text)</code>, I expect to see the product I added, however I just see <code>[]</code> (mobile user agent) or the supreme homepage html (desktop user agent), and figure out that there is nothing in the basket. I have also tried using a mobile user agent to get it working (json), and have also failed.</p>
  
  <p>When I try to use selenium requests, I am using Google Chrome (otherwise I am using custom user agents).</p>
  
  <p>I would appreciate any suggestion or way to fix this and be able to add products to my basket via HTTP POST requests.</p>