title: How to POST to URL in PowerShell?
body: <p>I have a Python script that posts a local file to a given URL using requests:</p>
  <pre class="lang-py prettyprint-override"><code>import requests
  url = 'https://www.myWebsite.com/ext/ext/ext'
  data = &quot;/Users/ME/Documents/folder/folder/folder/test.json&quot;
  with open(data) as test:
      headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
      r = requests.post(url, data=test, headers=headers)
  </code></pre>
  <p>I want to do the exact same thing in PowerShell.</p>
  <p>I've read this post on <a href="https://stackoverflow.com/q/5246836/">User powershell script to post to URL?</a>, but it seems very verbose/involved. Is there any short, easy way to do this? Is there such a thing as a 'requests' equivalent for PowerShell?</p>