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数据提交的格式是什么样的? #2

Closed
ppabc opened this issue Jun 27, 2016 · 1 comment
Closed

POST数据提交的格式是什么样的? #2

ppabc opened this issue Jun 27, 2016 · 1 comment

Comments

@ppabc
Copy link

ppabc commented Jun 27, 2016

POST数据提交的格式是什么样的?
{"m":"command","a":"df -h","t":"all","s":"1aa8c17520df23f0479423ff830316acf","r":"False","c":50"}
怎样不对?

@lfbear
Copy link
Owner

lfbear commented Jun 28, 2016

你拼写的post数据看上去是正确的,以编码后的json形式post到接口 http://yourhost:port/command
请确认,如果问题依旧存在,请留意http接口的返回数据
接口调用方法详细 https://github.com/lfbear/ansible-api/wiki/http-api-usage

@lfbear lfbear closed this as completed Aug 17, 2016
lfbear added a commit that referenced this issue Oct 30, 2019
lfbear added a commit that referenced this issue Oct 30, 2019
Merge pull request #2 from lfbear/master
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

2 participants