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.

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.