This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11902|Reply: 0

[Mutual Assistance] Fix ucenter error in https case

[Copy link]
Posted on 5/25/2018 2:25:35 PM | | | |
When using ucenter to synchronize user login and logout, it always reports a 301 error, as a programmer who is not proficient in php, but still study it!

Find the /uc_client/client.php file under the root directory and find the sync login code:

He will judge whether there are any sites that need to be synchronized in /uc_client/data/cache/apps.php, check this yourself! I won't say more!

Synchronization method: uc_user_synlogin>uc_api_post>uc_fopen2>uc_fopen, the problem lies in uc_fopen method!



Here's how:




The fsockopen call https method is as follows:



The amendments are as follows:



Finally, solve!




Previous:php nginx uses X-Accel-Redirect to control file download permissions
Next:Browser access js error Provisional headers are shown
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com