hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Different results for ContentType with preemptive authentication
Date Sat, 04 Mar 2017 17:36:03 GMT
On Sat, 2017-03-04 at 13:37 +0100, info@flyingfischer.ch wrote:
> httpclient 4.5.3
> httpcore 4.4.6
> 
> Stumbled over a strange behaviour in the context of preemptive
> authentication:
> 
> http://files.bakbasel.com/sbp/
> 
> It is probably a server bug. If so forget it. As long as you do not
> send
> the correct authentication details, content type will be
> 
> "text/html; charset=iso-8859-1"
> 
> When sending the correct authentication details, the response will
> contain
> 
> "text/html; charset=none"
> 
> which then will throw of course a
> java.nio.charset.UnsupportedCharsetException with
> 
> final ContentType ct =
> ContentType.getLenientOrDefault(rp.getEntity());
> 
> Thanks for considering, if this is an issue with httpclient. Sorry
> for
> bothering, if this is a server side problem.
> 
> Markus
> 

Markus

This does look like a server side issue to me but could you please post
the complete stack trace of the exception?

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message