以下是可靠的代码:
response= given().relaxedHTTPSValidation()
.contentType(ContentType.URLENC)
.queryParam("userId", "00528000000OEppAAG")
.queryParam("orgId", "00D28000000VXOREA4")
.queryParam("signature", "k8eL+T8QYQGlsT3TDIU9yMxcMgfFl6ROhi1aAgz7P0Y=")
.queryParam("timestamp", "2016-07-24T14:8:7.798Z")
.when().urlEncodingEnabled(true).post("https://abc.in/test/testAccountInfo").andReturn();
来自确认代码的回复:
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>
Postman的回复工作正常,这对我来说非常令人惊讶
我尝试使用content-type查询param,form param,没有content-type
答案 0 :(得分:0)
安装fiddler&amp;运行fiddler并添加此代码RestAssured.proxy(&#34; localhost&#34;,8888);