我必须将表单参数作为正文传递给我的请求。当我尝试
Response post = request.urlEncodingEnabled(true).log().all().config(RestAssured.config()
.encoderConfig(EncoderConfig.encoderConfig()
.encodeContentTypeAs("x-www-form-urlencoded",ContentType.URLENC)))
我收到的错误消息是“您可以在POST中发送表单参数或正文内容,而不能同时发送!”
当我检查日志时,以前的api响应作为正文传递给此请求。如何删除/重置/清除身体并仅通过表单参数。