摘要: web_add_header("Authorization","{token}"); 这个函数只对它下面的一个请求生效。 web_add_auto_header("Authorization","{token}"); 这个函数对它下面所有的请求都会添加一个标头,添加一次所有请求共用。 阅读全文
posted @ 2021-03-17 16:28 垄上行 阅读(2508) 评论(0) 推荐(0)
摘要: 1、新增token全局变量,变量值的内容中删除开始的Bearer部分。 2、设置请求的Authorization选项,设置TYPE为Bearer Token,Token值为变量{{token}}。 阅读全文
posted @ 2021-03-17 15:43 垄上行 阅读(4770) 评论(0) 推荐(0)
摘要: postman测试get请求时,响应200,但是接口返回:We're sorry but system-cn doesn't work properly without JavaScript enabled. Please enable it to continue 问题原因:被测接口存在重定向所致 阅读全文
posted @ 2021-03-17 15:17 垄上行 阅读(8952) 评论(0) 推荐(0)