• Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major Major
    • http-request-plugin
    • None

      Would be nice if we can enhance this plugin to support xml context type as well.

      Currently it throws the following exception when tried the context type as 'TEXT_XML'

      java.lang.IllegalArgumentException: No enum constant jenkins.plugins.http_request.MimeType.TEXT_XML
      	at java.lang.Enum.valueOf(Enum.java:238)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:382)
      

          [JENKINS-44726] Support XML Context types

          Naresh Rayapati added a comment - Issued a pull request: https://github.com/jenkinsci/http-request-plugin/pull/25 CC: janario

          This could be achieved thorough customer headers, janario is planning to deprecate this field. 

          Tried it and was able to get this working by adding customer headers.

          customHeaders: [[name: 'Content-Type', value: 'text/xml']]
          

          Naresh Rayapati added a comment - This could be achieved thorough customer headers, janario is planning to deprecate this field.  Tried it and was able to get this working by adding customer headers. customHeaders: [[name: 'Content-Type' , value: 'text/xml' ]]

            nrayapati Naresh Rayapati
            nrayapati Naresh Rayapati
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: