Curl alternative for python code

Need to run this api command via curl, the python code works without any problems , but we want the same to be run as curl command

import requests
params = {'username': 'testuser'}
params['access_token'] = 'c3NhbmthMDJjsd'
params['region'] = 'test'
params['role'] = 'guide'
params['ipaddr'] = '192.168.0.37'
params['name'] = 'test-testhost-001'
params['check'] = 'enable' 
url = 'http://10.0.0.1:8000/monitor/'
r = requests.post(url, data=params)
r.json()

Need help on how to post it via curl command :confused:

curl -d username=testuser -d access_token=.... etc..

Do all of the -d parms corresponding to your parms from your post and then give it the url as the last parameter

Does that point you in the right direction?

Also possible with wget.

wget "http://10.0.0.1:8000/monitor/" --post-data="username=testuser&access_token=c3NhbmthMDJjsd&region=test&role=guide&ipaddr=192.168.0.37&name=test-testhost-001&check=enable"