Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-564

ReplaceText not working as expected when forming POST requests for InvokeHTTP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • 0.2.0
    • None
    • None

    Description

      From Anup on the mailing list:

      Hi,
      I have a REST service that needs to be invoked with a few input
      parameters like filename and appName. I was able to call this REST service
      from NiFi through 'InvokeHTTP' processor by sending the parameters as part
      of the URL:
      "http://<ip>:<port>/app/context?filename=<filename>&appName=<appName>

      Now I need to use POST to do the same and send the parameters in the body
      part. How do I achieve this?

      METHOD: POST
      URL: http://<ip>:<port>/app/context

      Where do i send the parameters filename and appName?

      Regards,
      anup

      I tried doing that with the below entries.. but its failing.

      Regular ExpressionInfo = (.*)
      Replacement ValueInfo = appName=myApp&filename=${path}${filename}
      Character SetInfo = UTF-8
      Maximum Buffer SizeInfo = 1 MB
      Evaluation ModeInfo = Entire text

      How would these be treated as form parameters?

      Attachments

        Activity

          People

            aldrin Aldrin Piri
            aldrin Aldrin Piri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: