How to POST JSON data in body with Jenkins http-request plugin and Pipeline?
问题 With v1.8.10 of the http-request plugin for Jenkins (I'm running 1.643), there is now support for POSTing a body in the request -- so this thread does not apply. I am wondering how to use this functionality in a Pipeline (v2.1) Groovy script? The Snippet Generator does not include this new field, so I have no example to build off of. I have tried various ways to get the JSON data into the request body, but my Tomcat server always returns http 400 status code: The request sent by the client