rliu_330156
Aug 15, 2017Nimbostratus
Get error when sending JSON formatted data to the device
Hi,
I have gone after the instruction on 'iControl REST 101 – Creating Objects' to run:
curl -sk -u admin:production https://10.183.54.20/mgmt/tm/net/self/ -H 'Content-Type: application/json' -X POST -d '{"name":"cw_test2","address":"10.10.10.3/8","vlan":"internal"}'
and I got error message return as:
{"code":415,"message":"Found invalid content-type. The content-type must be application/json. The received content-type is application/x-www-form-urlencoded","errorStack":[],"apiError":1}
Can you let me know the possible reason to cause it?