【发布时间】:2020-08-29 19:46:34
【问题描述】:
The location of the certificates
我想使用 Restsharp 发送这个 GET 请求 -
这是我要发送的 -
请求 - GET,
网址 - https://18.0.1.230:8080/api/report/test,
标题 - Key = Content-Type , Value = application/x-www-form-urlencoded
在 Postman 上,我没有发送任何关于授权类型的内容(其设置为“从父级继承身份验证”)检查“从父级继承身份验证”图像
我在 Postman 中设置了客户端证书,因此我设置了它们的位置,邮递员在发送此请求时使用该证书。检查“证书位置”图片
我想知道如何使用 restSharp c# 代码将这些证书添加到 GET 请求中,以便通过身份验证并获得 200 响应?
【问题讨论】:
标签: c# automated-tests ssl-certificate postman restsharp