hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "info@flyingfischer.ch" <i...@flyingfischer.ch>
Subject Different results for ContentType with preemptive authentication
Date Sat, 04 Mar 2017 12:37:51 GMT
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



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


Mime
View raw message