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

Clients created with HttpClients.createMinimal do not work with absolute URIs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.1
    • 4.3.2
    • HttpClient (classic)
    • None

    Description

      An HttpClient created with HttpClients.createMinimal does not obey the general API contract of accepting an HttpUriRequest with an absolute URL. Specifically, this case:

      HttpClients.createMinimal().execute(new HttpGet("http://localhost:8080/resource"));

      would send the request:

      GET http://localhost:8080/resource HTTP/1.1

      rather than the expected:

      GET /resource HTTP/1.1

      The fix is to perform rewriting in MinimalClientExec.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joe@kafsemo.org Joseph Walton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: