Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43147

Support Request Body for HTTP DELETE

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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

            People

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

              Dates

              Created:
              Updated:
              Resolved: