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

InvokeHTTP does not report final URL after following redirects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.13.2
    • 1.14.0
    • None

    Description

      If InvokeHTTP is set to follow redirects, there currently is no way to retrieve the final URL which was the ultimate target of any redirects that were followed.

      I propose adding a new attribute "invokehttp.response.url" to include the final URL when InvokeHTTP is set to follow redirects.  The current attribute "invokehttp.request.url" contains the URL which was originally requested, and this new attribute will contain the URL that was ultimately retrieved.

      For example, if the URL "http://bitly.com/1sNZMwL" is retrieved, invokehttp.request.url will continue to contain "http://bitly.com/1sNZMwL" and invokehttp.response.url will contain "https://en.wikipedia.org/wiki/Bitly".

      Attachments

        Issue Links

          Activity

            People

              pkelly.nifi Paul Kelly
              pkelly.nifi Paul Kelly
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h