How to change Content-Type in a POST to make all types of Content-Type available

  • Alex K
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (310)
        Has successfully completed the online course Advanced (320)
      1 year ago #36525

      Simplifier just locks all other Content-Types out with its “postFormat”

      How do I really declare the Content-Type to all possible MIME Types?

      See here:
      MIME_types/Common_types

      postFormat currently only allows 4 different MIME types out of 72. Thats 5%.

      Is there a way to override those 4 fixed Content-Types with any of the remaining 68?

      Andreas Dallner
          Has successfully completed the online course Introduction
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
          Has successfully completed the online course Basics (100)
          Has successfully completed the online course Advanced (310)
          Has successfully completed the online course Advanced (320)
          Has successfully completed the Intermediate Certification
          Has successfully completed the Advanced Certification
        1 year ago #41208
        Up
        1
        Down
        ::

        Hi Christoph, hi Alex,

        starting with Simplifier 8 EHP 1 it is now possible to set the content-type in the header params and overwirte the default used content-type by postFormat

         

        Kind regards,

        Andreas

        Jennifer Häfner
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
            Has successfully completed the online course Basics (100)
            Has successfully completed the online course Advanced (310)
            Has successfully completed the online course Advanced (320)
            Has successfully completed the Intermediate Certification
            Has successfully completed the Advanced Certification
          1 year ago #36573
          Up
          0
          Down
          ::

          Hey Alex,

          As I also replied in this thread: https://community.simplifier.io/forums/topic/rest-postbody-with-postformat-xml/, the REST Connector currently cannot cover all options for the mime types.

          In these cases, we have to work with client-side XHR / ajax calls. If you want, you can leave a feature idea on our feature request portal: https://ideas.simplifier.io/ideas

          Christopher Steinbach
              1 year ago #39714
              Up
              0
              Down
              ::

              Hi Jennifer,

              I have the same problem like Alex. I have to make a REST request with content-type “text/html”. A client-side ajax call is not an option, because the client shouldn’t have the sensible REST-API credentials. You also might get in trouble with CORS policy.

              I saw that it is possible to set custom request headers. Why can’t this headers overwrite the default headers? Why is Simplifier making such a simple thing so hard?

              Christopher Steinbach
                  1 year ago #41219
                  Up
                  0
                  Down
                  ::

                  Thank you Andreas. That is greate news. We plan to update soon.

                Viewing 5 posts - 1 through 5 (of 5 total)

                You must be logged in to reply to this topic.