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

redundant port when executing request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.4 Alpha1
    • HttpClient (classic)
    • None

    Description

      When HttpClient execute request using HttpHost
      e.g. client.execute(new HttpHost("www.example.com"), new HttpGet("/"));

      the request will add a redundant port to Host header and/or URI
      GET / HTTP/1.1
      Host: www.example.com:80
      .......(if through proxy)
      GET http://www.example.com:80/ HTTP/1.1
      Host: www.example.com:80

      Attachments

        Activity

          People

            Unassigned Unassigned
            pseudoman Isaac LAM
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: