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.

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

  • 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.