I used the example provided here
Netty HTTP Authetication for Client
but still having 401 response
when I print the request header I can see that all is good except one thing, the Authorization is:
Authorization: YWRtaW46YWRtaW4=
When I do the same authentication with Chrome for instance, I have:
Authorization: Basic YWRtaW46YWRtaW4=
nothing special in netty doc about how to add Basic in the header
When I catch the failing message with a tool like tcpmon and resend the message by adding manually the Basic string, it works fine.
My question could be how to add Basic in the header submitted by netty ?
does someone faced this before ?
thnx
I finally did a hack in org.jboss.netty.handler.codec.http.HttpHeaders#addHeader method: