New Tutorial: How does a client (non-browser) on windows interact with the PHP Server (send the user name and password to the server )? Thank you. New Tutorial: How does a client (non-browser) on windows interact with the PHP Server (send the user name and password to the server )? Thank you.
Use a browser to interact with the PHP server:
1. the browser requests the server's login page;
2. the server returns the page to the browser;
3. enter the user name and password on the browser page and click "OK". the account information is sent to the server;
4. verify the server and return the result to the browser;
5. the browser displays the result.
Problem:
Develop a windows client on your own (non-browser, such as the 163 mailbox and qq client). What is the difference between the authentication process and the browser above?
The phpinfo () function on the PHP server can obtain the user agent information:
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv: 11.0) like Gecko
Reply to discussion (solution)
Windows clients also have encapsulated Http protocols that are directly assembled into http headers and sent to the php server;
That is, does the windows client use the same browser to interact with the PHP server?
WinHTTP