放心代码在JavaAPI中给出503响应,但在POSTMAN中运行良好

放心代码在JavaAPI中给出503响应,但在POSTMAN中运行良好,java,api,automation,rest-assured,Java,Api,Automation,Rest Assured,以下是重新发行的代码: response= given().relaxedHTTPSValidation() .contentType(ContentType.URLENC) .queryParam("userId", "00528000000OEppAAG") .queryParam("orgId", "00D28000000VXOREA4") .queryParam

以下是重新发行的代码:

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>
重新发布代码的响应:

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>
503服务不可用
没有可用于处理此请求的服务器。
邮递员的回复很好,这让我非常惊讶


我尝试了查询param,form param,有内容类型,没有内容类型

安装fiddler并运行fiddler,然后添加代码RestAssured.proxy(“localhost”,8888)

安装fiddler并运行fiddler,然后添加代码restasured.proxy(“localhost”,8888)

你能解决吗?你能解决吗?我也有同样的问题。那我该怎么办?是的。这对我很有帮助。谢谢。我也有同样的问题。那我该怎么办?是的。这帮了我…谢谢