App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Sending POST request with content type 'multipart/form-data'

  • 1.  Sending POST request with content type 'multipart/form-data'

    Posted Thu October 05, 2023 01:46 AM

    Hi folks,

    I'm trying to send POST request with content type 'multipart/form-data' to external webservice using http Request node. The same external webservice is working fine when we mock the service using postman.

    While we are using IBM ACE -11.0.0.9 we are getting error as Parts found, but content-type does not specify a valid boundary.

     i see boundary value is auto calculated in postman how can we do it ACE?

    please provide your suggestions.

    --------

    Deepak



    ------------------------------
    Deepak K
    ------------------------------


  • 2.  RE: Sending POST request with content type 'multipart/form-data'

    Posted Tue November 14, 2023 02:42 AM

    Hello Deepak

    Unlike Postman, ACE does not set this automatically. So you have some options. You can use scripting to set this or a unique id to work as a delimiter. I have not tested this, but could you try to generate a uuid, and then set this in the esql node before the HTTP request? It would be like this: Content-Type = multipart/form-data; boundary=youruuid.

    Regards,

    Kjetil



    ------------------------------
    Kjetil Svihus
    ------------------------------