What does curl simulate login mean?

Source: Internet
Author: User
What does curl simulate login mean? Curl php simulated login

I have heard that php curl simulates login, but I never know what it means? Is the user name and password of the website sent to another website through socket for login? Please explain .......


Reply to discussion (solution)

Do you already know?

Send the user name and password of the website to another website through socket for login.
This is SSO.
It is also a kind of simulated login

Simulated login is to send the user name and password to the website through socket for login

I just guessed that he was doing so. now I am OK. thank you very much!

Module? Login? Step? :
$ Url = 'Your login ?? Way ';
$ User_login = '';
$ User_password = '';
$ Loginfields = "user_login = $ user_login & user_password = $ user_password ";
$ Ch = curl_init ();
Curl_setopt ($ ch, CURLOPT_POST, 0); // set how many paramaters to post
Curl_setopt ($ ch, CURLOPT_URL, $ url); // set the url we want to use
Curl_setopt ($ ch, CURLOPT_POSTFIELDS, $ loginfields); // set the field
$ Data = curl_exec ($ ch); // execute and get the results
Curl_close ($ ch );
Accessible ???? Php outside the site, model? Someone filled in? Used? Name and password ?, Then submit? System ?.

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.