<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I have developed a unit test to control the REST Gateway Api when
deployed into Karaf using Apache HttpClient but when I issue this
request<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<a class="moz-txt-link-freetext" href="https://localhost:8444/apiman-gateway-api/system/status">https://localhost:8444/apiman-gateway-api/system/status</a><br>
<br>
I receive an error 401<br>
<br>
<a class="moz-txt-link-freetext" href="https://gist.githubusercontent.com/cmoulliard/daa13f336b04ba625af4/raw/f9147c9d426c5457ba0a9df09c4af324f2879982/gistfile1.txt">https://gist.githubusercontent.com/cmoulliard/daa13f336b04ba625af4/raw/f9147c9d426c5457ba0a9df09c4af324f2879982/gistfile1.txt</a><br>
<br>
2016-02-19 19:09:10,722 | INFO | (3)-192.168.1.80 |
HttpServiceFactoryImpl | 66 -
org.ops4j.pax.web.pax-web-runtime - 3.2.4 | Unbinding bundle:
[io.apiman.apiman-gateway-osgi-api [212]]<br>
javax.servlet.ServletException<br>
at org.eclipse.jetty.server.Request.login(Request.java:2109)<br>
at
io.apiman.common.servlet.AuthenticationFilter.doBasicAuth(AuthenticationFilter.java:232)<br>
<br>
As the same request works pretty well when issued using curl/httpie
tool against the Karaf container running in standalone mode, I 'm
wondering why it fails with HttpClient & Basic Authentication ?<br>
<br>
Regards,<br>
<br>
Charles<br>
</body>
</html>