开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜