CURL返回多行JSON数据的BAD REQUEST

时间:2018-06-28 05:19:26

标签: json rest curl post bad-request

对于CURL POST请求,我具有以下数据格式

{
 "logs": "STEP: Creating a claim with a dynamic provisioning annotation
 STEP: checking the claimlocal-vlz9r
 STEP: Checking the created volume is writable
 STEP: Saw pod success
 STEP: Sleeping to let kubelet destroy pods",
 "pass": "true | false"

}

它显示400 Bad Request

如果我保持这种方式,则回复为success

{
 "logs": "STEP: Creating a claim with a dynamic provisioning annotation.STEP: checking the claimlocal-vlz9r.STEP: Checking the created   volume is writable STEP: Saw pod success STEP: Sleeping to let kubelet destroy pods",
 "pass": "true | false"

}

但是这些是我的测试报告,我会首先需要它[以换行符逐行显示]

0 个答案:

没有答案