问题标签 [unirest-java]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - 使用 Java Unirest 发布一个“x-www-form-urlencoded”实体
我使用 java Unirest 来调用我的 api。但现在我需要发布一个对象,但使用 x-www-form-urlencoded,我使用以下代码:
我得到这个错误:
{"error":"invalid_request","error_description":"缺少表单参数:grant_type"}
当我分析请求时,标头没问题:(但看起来对象在 json 中并且没有 x-www-form-urlencoded
java - 如何更改 UNIREST 帖子中的属性名称?
我使用 Unirest 调用一个 api rest,但现在我需要更改我的属性名称。这是可能的?
tks