Skip to content

Update RequestOptions.php #434

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

webguosai
Copy link

不验证https

@qiniu-prow qiniu-prow bot added the size/XS label Oct 11, 2024
@lihsai0
Copy link
Collaborator

lihsai0 commented Oct 16, 2024

请问是什么场景?

$config->useHTTPS=false; 不起作用么?

@webguosai
Copy link
Author

webguosai commented Oct 26, 2024

请问是什么场景?

$config->useHTTPS=false; 不起作用么?

$config->useHTTPS=true; 开启后,当curl访问https网站时会检查curl的证书文件,这时如果我的php环境中的curl 没有配置pem证书文件(一般php都不会配置这个pem证书,需要自己在php.ini中配置证书路径),就会报错
而加上
CURLOPT_SSL_VERIFYHOST
CURLOPT_SSL_VERIFYPEER 会不验证https证书,这样就不会报错。 @lihsai0

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants