0

I'm trying to run a WebJob using Webhook with the username and password. In postman it works fine with the basic auth.

I took the code generated for Powershell from Postman and tried running from Powershell but it gives me 403 Forbidden error. Any idea why forbidden for Powershell?

hmm
  • 1
  • 4
  • 1
    Feel free to share your code. – codaamok May 08 '22 at 14:00
  • $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" $headers.Add("Authorization", "Basic ENCRYPTED TOKEN") $headers.Add("Cookie", "COOKIE") $response = Invoke-RestMethod 'URL' -Method 'POST' -Headers $headers $response | ConvertTo-Json – hmm May 08 '22 at 14:50

1 Answers1

0