Uploaded image for project: 'XML-RPC'
  1. XML-RPC
  2. XMLRPC-132

Enabling the ability for the xml-rpc client to redirect requests

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.1
    • Fix Version/s: 3.1
    • Component/s: Source
    • Labels:
      None

      Description

      This modification to the XMLRPCStreamTransport adds a customization point to determine if the transport needs to redirect the request before attempting to parse the response from the server. This uses a similar redirect algorithm as used in the Apache Http client to processing redirects with a Max limit to prevent a recursive loop.

      The redirect logic itself is implemented in two callback methods isRedirectRequired() and
      resetClientForRedirect()

      These callback methods are only implemented in the XmlRpcCommonsTransport which means that the other transport options won't support redirects (unless they are modified to do this by implementing these call back methods)

        Attachments

        1. XMLRPC-132.zip
          6 kB
          Andrew Norman
        2. XMLRPC-132-patch
          13 kB
          Andrew Norman
        3. redirects.patch
          3 kB
          Jochen Wiedmann

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              normana400 Andrew Norman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: