开发者

how to get parameter in REST web service from curl?

开发者 https://www.devze.com 2023-03-02 15:59 出处:网络
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?

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

精彩评论

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