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

Support underscore in domain name, or provide better exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.1
    • None
    • HttpClient (classic)
    • None

    Description

      When calling on HttpClient.execute with a url that contain underscore ('_'), you get NullPointerException.
      Tracing it down show that java.net.Uri complains that it is illegal name. Which is true according to the RFC.
      But it seems that most browser allow it, and some companies support it.

      I think HttpClient should either support underscores, or atleast provide a better exception.

      Attachments

        1. HTTPCLIENT-911.patch
          1 kB
          Oleg Kalnichevski

        Activity

          People

            Unassigned Unassigned
            zhoresh Ziv Horesh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: