Pentaho

 View Only
  • 1.  Http Post with multipart/form-data Text Json

    Posted 3 days ago
    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
    ------------------------------


  • 2.  RE: Http Post with multipart/form-data Text Json

    Posted 2 days ago
    I was trying this out and got some issues and still finding it can you give some more suggestions if any thanks in advance.
    HP Instant Ink Plans
    ------------------------------
    Alphonse Smith
    Chief Information Officer
    Edwards
    ------------------------------