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

curl未携带原始Http request header导致JsonParseException #333

Open
xiongqisong opened this issue Aug 30, 2019 · 0 comments
Open

curl未携带原始Http request header导致JsonParseException #333

xiongqisong opened this issue Aug 30, 2019 · 0 comments

Comments

@xiongqisong
Copy link

1.请求头没有包括-H "Content-Type: application/json"
2.--data格式使用'json串'
两个点导致后台接口在解析post body时出现JsonParseException
改进建议:
1.将通用Header加入至生成的curl命令中
2.--data使用"json串"生成,且json串内的"转义为"

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

1 participant