I have a Problem with the REST Interface of OTRS:
I have OTRS 4.0.8 running on a Linux System.
There I tried the following code with curl:
curl "http://****/otrs/nph-genericinterface.pl/Webservice/TicketSharepoint/TicketCreate?UserLogin=****&Password=****" -H "Content-Type: application/json" -d "{\"Ticket\":{\"Title\":\"REST Create Test\",\"Queue\":\"Computer\",\"State\":\"open\",\"Priority\":\"1 Kritisch\",\"CustomerUser\":\"*****\"},\"Article\":{\"Subject\":\"Rest Create Test\",\"Body\":\"This is only a test\",\"ContentType\":\"text/plain; charset=utf8\",\"TimeUnit\":\"0\"}}" -X POST
This is working fine, but now I'm trying to run the same code on Windows via remote and it is not working.
I tried it several times and with always other Syntax so I have now the following code:
C:\ISE\curl.exe "http://uhldevm165/otrs/nph-genericinter ... &Password=****" -H "Content-Type: application/json" -d "{'Ticket':{'Title':'REST Create Test','Queue':'Computer','State':'open','Priority':'1 Kritisch','CustomerUser':****'},'Article':{'Subject':'Rest Create Test','Body':'This is only a test','ContentType':'text/plain; charset=utf-8','TimeUnit':'0'}}" -X POST
But no mather what I'm doing, there is always the following error message:
Error while Decoding request Content.
I hope one of you is able to help me a Little bit to get things running.
Thx a lot
