Unexpected error occurred running a simple unauthorized Rest query

前端 未结 3 1322
天命终不由人
天命终不由人 2021-01-31 08:33

I have a rest endpoint that doesn\'t perform an authentication check. I can run a simple curl commmand from Linux:

curl -k https://application/api/about
<         


        
3条回答
  •  不要未来只要你来
    2021-01-31 08:50

    Using:

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    

    Taken from Powershell 3.0 Invoke-WebRequest HTTPS Fails on All Requests.

提交回复
热议问题