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

RedirectExec always changes HTTP method on 301, 302, 303

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0 Beta7
    • 5.0
    • HttpClient (classic)
    • None

    Description

      While working on WAGON-570 I noticed that RedirectExec still sticks to the old scheme to change request method from X to GET.
      I may understand this for 303, but not for the rest. RFC 7231 says:

      Note: For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent request. If this behavior is undesired, the 307 (Temporary Redirect) status code can be used instead.

      I would assume that the default behavior would not change the HTTP method. I'd expect this to be configurable on client or request basis.

      Am I misinterpreting the RFC?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 4h
                  4h