On Wed, 2010-06-09 at 07:15 -0700, Ken Krugler wrote:
> Hi Udit,
>
> I believe the problem is that technically the subdomain
> ("donotdelete_httpclient", in your case) can't have underscores.
>
> So the URI class will return null for the hostname.
>
> The same thing would happen if you had a subdomain that started with a
> "-", for example "-angelcries.blogspot.com"
>
> In HttpClient 3.x, there was a custom URI class that was more lenient,
> but in 4.x the standard Java URI class is used.
>
> Even though these are technically invalid hostnames, most (all?) DNS
> servers will resolve them properly, which is why the URL works in a
> browser, but fails with HttpClient 4.
>
> I believe Oleg's standard response is that you should use HttpCore
> directly if you need to work with non-standard hostnames.
>
> -- Ken
>
Yes, pretty much. All non-standard behaviors are easier to deal with at
a lower (core components) level.
For details see on this particular issue please see:
https://issues.apache.org/jira/browse/HTTPCLIENT-911
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]