Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3.0
    • Component/s: HTTP plugin
    • Labels:
    • Environment:
      Linux

      Description

      An option should exist on the http element to allow redirects and the max number of redirects to follow. The result obtained from the http plugin should be the destination page.

      There are scenarios involving logins that require a flow to be followed and this would enable tsung to be used this way as well.

        Expenses

          Activity

          Hide
          nniclausse Nicolas Niclausse added a comment -

          Using the upcoming 1.3.0 release, you can use <repeat> and dynamic variable to achieve this:

          <request>
          <dyn_variable name="redirect" regexp="Location: (http://.*&#41;\r"/>
          <http url='/test/redirect1.html' method='GET'></http>
          </request>

          <repeat name="redirect_loop" max_repeat="5">
          <request subst="true">
          <dyn_variable name="redirect" regexp="Location: (http://.*&#41;\r"/>
          <http url="%%_redirect%%" method="GET"></http>
          </request>
          <until var="redirect" eq=""/>
          </repeat>

          Does it fit your needs ?

          Show
          nniclausse Nicolas Niclausse added a comment - Using the upcoming 1.3.0 release, you can use <repeat> and dynamic variable to achieve this: <request> <dyn_variable name="redirect" regexp="Location: ( http://.*&#41;\r "/> <http url='/test/redirect1.html' method='GET'></http> </request> <repeat name="redirect_loop" max_repeat="5"> <request subst="true"> <dyn_variable name="redirect" regexp="Location: ( http://.*&#41;\r "/> <http url="%%_redirect%%" method="GET"></http> </request> <until var="redirect" eq=""/> </repeat> Does it fit your needs ?
          Hide
          andrefcruz André Cruz added a comment -

          Looks like it. We only need the last block, right?

          Show
          andrefcruz André Cruz added a comment - Looks like it. We only need the last block, right?

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development