请放心,代码在 java API 中给出 503 响应,但在 POSTMAN 中工作正常

Rest assured code giving 503 response in java API but working fine in POSTMAN

下面是放心代码:

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 的回复工作正常,这让我很惊讶

我尝试了查询参数,表单参数,有内容类型,没有内容类型

安装 fiddler & 运行 fiddler 并添加此代码 RestAssured.proxy("localhost", 8888);