This error usually indicates that the MIME type specified in the
Content-Type header is not supported or is incorrect, or the HTTP header is not present.
Try using a network packet sniffer/analyzer such as
Wireshark and compare what is going over the wire with your application and cURL.
If your client or server is running on Linux, you can also use
tcpdump and direct the output to
strings to take a quick and dirty look at your network traffic (although you will see some extraneous character displayed as data from layers below HTTP is rendered).
[root@tv-tb332 ~]# tcpdump -i eth1 -l -s 0 -nn port 88 -w - | strings
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
PATCH /api/profile/Working/config/enb/cell-info HTTP/1.1
Host: 172.25.129.96:88
Connection: keep-alive
Content-Length: 33
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Cache-Control: no-cache
Origin: chrome-extension://mkhojklkhkdaghjjfdnphfphiaiohkef
X-Ssi-Role: EXPERT
Content-Type: application/json
Accept: */*
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-GB,en;q=0.8,en-US;q=0.6,es;q=0.4,fr;q=0.2,ja;q=0.2
"cell-identity": 1268435