Pentaho

 View Only

Http Post with multipart/form-data Text Json

This thread has been viewed 18 times
  • 1.  Http Post with multipart/form-data Text Json

    Posted 05-12-2022 16:31
    Hello everybody.

    I need to send via HTTP Post some information structured in JSON.

    The server's contextType expects a call of type Http post with multipart/form-data. I'm only sending the Json, I don't need to inform a file.

    In any HTTP Client, EVERYTHING works for sending test according to the attached image. But via Pentaho it's failing returning error 400, Invalid File, But I don't need to send a file, just my JSON.

    I already use HTTP Post to send ContentType of JSON type without any problems. the error only occurs when I try to use multipart/form-data.

    Does anyone have an idea?


    http-post-settings
    Modified JavaScript value-JSON
    parametros
    HTTP client where I can send successfully. Using these settings on it only.


    ------------------------------
    Diego Soares
    Account Manager
    prodasp
    ------------------------------