hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: GET request using httpclient4.0.1
Date Wed, 09 Jun 2010 21:04:13 GMT
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: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message