title: Invoke-RestMethod Powershell V3 Content-Type
body: <p>I am able to use the JIRA rest API from powershell v5. However the same code throws the below error in powershell v3.</p>
  
  <pre><code>WARNING: Remote Server Response: The 'Content-Type' header must be modified using the appropriate property or method.
  </code></pre>
  
  <p>Source Code</p>
  
  <pre><code>$basicAuth = "Basic " + [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("$($Username):$Password"))
      $headers = @{
          "Authorization" = $basicAuth
          "Content-Type"="application/json"
      }
  
   $response = Invoke-RestMethod -Uri $requestUri -Method POST -Headers $headers -Body $body
  </code></pre>