[
https://issues.apache.org/jira/browse/HTTPCLIENT-911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838653#action_12838653
]
Ziv Horesh commented on HTTPCLIENT-911:
---------------------------------------
FYI - I don't think it totally solve the problem.
There is a similar case in parsing the results in
DefaultRequestDirector.handleResponse
I get NPE in new HttpPost because the host is null.
----------------------
URI uri = this.redirectHandler.getLocationURI(response,
context);
HttpHost newTarget = new HttpHost(
uri.getHost(),
uri.getPort(),
uri.getScheme());
----------------------
Thanks
Ziv
On Wed, Feb 10, 2010 at 1:50 AM, Oleg Kalnichevski (JIRA)
> Support underscore in domain name, or provide better exception
> --------------------------------------------------------------
>
> Key: HTTPCLIENT-911
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-911
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient
> Affects Versions: 4.0.1
> Reporter: Ziv Horesh
> Priority: Minor
> Fix For: 4.1 Alpha2
>
> Attachments: HTTPCLIENT-911.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]