
Am 11/27/2014 10:50 AM, schrieb Michael Ablassmeier:
) url = 'http://myotrs/otrs/nph-genericinterface.pl/Webservice/Test/TicketUpdate/1001...'
r = requests.post(url, params=ticketdata) print r.content
cause of the issue was that i passed the data with params= and not with data=, this way it worked: ticketdata=dict( UserLogin="user", Password="pass", Ticket=dict( Title='changeme' ) ) headers = {'content-type': 'application/json'} r = requests.post(url, data=json.dumps(ticketdata), headers=headers) print(r.content) it works. -- Michael Ablassmeier Senior Support Engineer Ziegelstrasse 1 D-83629 Weyarn Fon +49 (0) 80 20 / 180-0 Fax +49 (0) 80 20 / 180-666 Mail support@sep.de Web http://www.sep.de