I make my REST API for Android application.
I want the login and token to be transmitted to the server via url as follows: login: token@mysite.com/index.php
The URL specification allows you to: 
The question is, how, where does this data go (login: token) and, most importantly, how can you get it in the index.php script?
What did to solve:
1. rummaged the floor of Google
2. Dropped out all the superglobal PHP variables ($ _SERVER, $ _POST, and so on)
SCHEME, depending on it, you can do so or not. What is the difference between what you want and for example pass the login and pass through_GET? only the appearance, the client still does not see what the difference is ... - Manitikyl 2:28 pm