[ 
https://issues.apache.org/jira/browse/HTTPCORE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13919406#comment-13919406
 ] 

Gary Gregory commented on HTTPCORE-365:
---------------------------------------

I do not think the above will work with IPv6 addresses. Please provide patches 
in SVN diff format. Adding unit tests would be best ;)

> HttpHost(hostname) should be able to parse format hostname:port
> ---------------------------------------------------------------
>
>                 Key: HTTPCORE-365
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-365
>             Project: HttpComponents HttpCore
>          Issue Type: New Feature
>          Components: HttpCore
>    Affects Versions: 4.3
>         Environment: JDK6
>            Reporter: Remis
>            Priority: Minor
>             Fix For: 4.4
>
>
> When we write e.g.:
> HttpHost proxy = new HttpHost("my-proxy:8080");
> HttpHost interprets it as a hostname="my-proxy:8080" and port=-1. I believe 
> it should be able to parse the exemplified "my-proxy:8080" correctly.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to