Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-862

Extend the client's redirect handling interface to allow control of the content of the redirect

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0 Beta 2, 4.1 Alpha1
    • 4.1 Alpha2
    • HttpClient (classic)
    • None

    Description

      The existing RedirectHandler interface provides the ability influence which situations cause redirects, but gives you no control over the content of the redirect itself. For example, if you want the client follow the redirect of a POST request with a POST request to the new location, you can't do it. DefaultRequestDirector decides what method will be used on the redirect request and as of the most recent patch, it's always either a HEAD or a GET.

      One option for resolving this might be extending the RedirectHandler interface to be a factory for creating the redirect request object. The the DefaultRequestDirector could then be changed to ask the RedirectHandler to create the appropriate request for the situation.

      Thanks,
      Ben

      Attachments

        Activity

          People

            Unassigned Unassigned
            benlperkins Ben Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: