When I use http-request plugin to issue HTTP DELETE with request body, it throws "HTTP/1.1 400 BAD REQUEST" error response with detailed message "Failed to decode JSON object: Expecting value: line 1 column 1 (char 0)". Per checking with Janario, it is the limitation in HttpClient that HttpDelete doesn't support HttpEntity(body). It would be great to support firing HTTP DELETE request with body.

          [JENKINS-43147] Support Request Body for HTTP DELETE

          Code changed in jenkins
          User: Janario Oliveira
          Path:
          src/main/java/jenkins/plugins/http_request/util/HttpBodyDelete.java
          src/main/java/jenkins/plugins/http_request/util/HttpClientUtil.java
          http://jenkins-ci.org/commit/http-request-plugin/670eefcf988afd1788da3ccd5429246422f367b7
          Log:
          JENKINS-43147 - Added support to send body in delete method

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Janario Oliveira Path: src/main/java/jenkins/plugins/http_request/util/HttpBodyDelete.java src/main/java/jenkins/plugins/http_request/util/HttpClientUtil.java http://jenkins-ci.org/commit/http-request-plugin/670eefcf988afd1788da3ccd5429246422f367b7 Log: JENKINS-43147 - Added support to send body in delete method

            janario Janario Oliveira
            jessieysy Jessie Yeung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: