Beginner's advice: How does a client (non-browser) on Windows interact with a PHP server (sending a user name, password) to the server? Thank you.
The user interacts with the PHP server using a browser:
1. The browser requests the login page of the server;
2. The server returns the page to the browser;
3. The user enters the user name, the password on the browser page, clicks the Confirmation button, the account information brings to the server;
4. The server authenticates and returns the results to the browser;
5. The browser displays the results.
Problem:
Self-developed a Windows client (non-browser, such as 163 mailbox, QQ client-like), the authentication process and the above browser is different, or the same?
The Phpinfo () function on the PHP server can obtain information about the user agent:
Http_user_agent mozilla/5.0 (Windows NT 6.1; trident/7.0; rv:11.0) Like Gecko
Reply to discussion (solution)
Windows client also has encapsulated HTTP protocol, directly assembled into the HTTP header, sent to the PHP server;
Is the Windows client interacting with the PHP server in the same way as a browser?
WinHTTP