Get username from url http://username:password@xxx.ru

if the request goes to url http://username:password@xxx.ru:8080/401 . How can I get the login and password values from the request?