Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问,如何POST JSON格式数据 #3

Open
recruits opened this issue Apr 10, 2017 · 7 comments
Open

请问,如何POST JSON格式数据 #3

recruits opened this issue Apr 10, 2017 · 7 comments

Comments

@recruits
Copy link

工程已经成功运行起来了,感觉跟crapapi有点类似,总体感觉更简洁一些。
目前,有个问题请教一下
如何POST一个JSON串?
目前,我增加了一个请求头部:Content-Type application/json;增加了两个请求参数(id,name),分类为JSON类型,提交请求之后,服务器返回异常。

注:使用postman做测试,可以设置raw类型参数,直接贴json串,请求正常返回

@xuxueli
Copy link
Owner

xuxueli commented Mar 20, 2018

你好,该需求已经加入到项目TODO列表,将会排期设计实现。

@OrdinaryYZH
Copy link
Contributor

强烈要求+1

@weicm
Copy link

weicm commented Jun 20, 2018

不知道这个issue进度如何呢?

@yuekong2010
Copy link

此需求实现了吗?

@debugbb
Copy link

debugbb commented Jul 8, 2019

同样的问题,请问此需求实现了吗?看issue里还有人提过此问题
Duplicate of #31
Duplicate of #24

@Xrq1995
Copy link

Xrq1995 commented Mar 12, 2020

这个json的请求,我这边实现了。我找了个httpclient工具类,支持http 和https的请求

@xuxueli
Copy link
Owner

xuxueli commented Nov 16, 2024

希望增加Json格式的RequestBody以及Json格式展示时不要用text,且能格式化显示,高亮显示

From:#31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants