我正在尝试分配一个用户值,它是 base64 字符和 Content-Type,它是“application/x-www-form-urlencoded”。在我的邮递员中,内容类型在标题下,用户在正文下。因此,我构建了我的 yaml 脚本,如下所示:
execution:
- concurrency: 10
ramp-up: 20S
hold-for: 1m
scenario: sample
scenarios:
sample:
requests:
- url: 'https://www.mtn.com/umbraco/surface/loginsurface/authenticate'
method: POST
headers:
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp, application/x-www-form-urlencoded'
Body:
user: 'YWFkaWwuaaa2hhbkBzb3RpLdDpXZWxjb21lMTIzNA=='
但是,当我运行 Taurus 时,这不起作用。语法错了吗?