|
发表于 2023-9-26 14:33:59
|
显示全部楼层
上海市上海市
你指定是协议头分析错了,你试试我的
变量名 | 类 型 | 静态 | 数组 | 备 注 | 局_网址 | 文本型 | | | 局_方式 | 整数型 | | | 局_提交数据 | 文本型 | | | ADD_协议头 | 类_POST数据类 | | | 局_提交协议头 | 文本型 | | | 局_结果 | 字节集 | | | 局_返回 | 文本型 | | |
局_网址 = "https://api.dingtalk.com/v1.0/robot/groupMessages/send" 局_方式 = 1 "msgParam":" {\"content\":\"hhhhhhhhhhhhh\" }", "msgKey":"sampleText" }局_提交数据 = " {” + #换行符 + “ ”+#引号+ “msgParam”+#引号+ “:”+#引号+ “{\”+#引号+ “content\”+#引号+ “:\”+#引号+ “hhhhhhhhhhhhh\”+#引号+ “}”+#引号+ “,” + #换行符 + “ ”+#引号+ “msgKey”+#引号+ “:”+#引号+ “sampleText”+#引号+ “” + #换行符 + “}" ADD_协议头.添加 ("Content-Type","application/json") ADD_协议头.添加 ("x-acs-dingtalk-access-token","c77f1a817c933298976917fba90cfa21") ADD_协议头.添加 ("User-Agent","Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 BIDUBrowser/8.3 Safari/537.36") 局_提交协议头 = ADD_协议头.获取协议头数据 () 网页_访问S (局_网址, 局_方式, 局_提交数据, , , 局_提交协议头, , , , , , , , , , , 局_结果, , , , ) 局_返回 = 到文本 (局_结果) 返回 (局_返回)
补充内容 (2023-9-26 15:00):
发包工具 你看你 body那里,你应该勾选 raw 然后 有个下拉选择 JSON,然后发包
补充内容 (2023-9-26 15:01):
你勾的事 urlencode 所以尽管 你自己在header上加了 content-type 也还是不行 因为发包工具会根据 你勾选的 重定义 content-type |
|