how to get parameter in REST web service from curl?
if the user request in curl like curl -u username:password . I wonder how to get parameter from curl -u in 开发者_如何学CREST web service?Do any know? I use jersey framework using java. I use Netbean IDE and glassfish server.
thanks
See the HttpServletRequest method getUserPrincipal and/or getRemoteUser.
Remember these methods will only return the username for authenticated requests.
精彩评论