雨田博客
让斗志、坚持、自信成为习惯

导航

 

2019年10月30日

摘要: private static RestResponseCookie prelogin() { var client = new RestClient("http://xxxx.com/callback?client_name=client"); var request = new RestRequest(Method.POST); request.AddHeader("postman-token" 阅读全文
posted @ 2019-10-30 22:26 张雨田 阅读(1740) 评论(0) 推荐(0) 编辑
 
摘要: 1、Postman 模拟请求完成之后,点击右上角的 code 按钮,复制代码。 2、在Vs2019 Nuget 包管理器中 添加 restsharp.dll, 3、粘贴到 Vs2019 中,运行即可,即可进行Http 请求。 PS: 需要预登陆时,预登陆请求获得的Session相关的Cookie,需 阅读全文
posted @ 2019-10-30 22:15 张雨田 阅读(599) 评论(0) 推荐(0) 编辑