手册中的例子
<?php
// create a new curl resource
$ch = curl_init();// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);// grab URL and pass it to the browser
curl_exec($ch);// close curl resource, and free up system resources
curl_close($ch);
?>
把http://www.example.com换成https://www.x.com的话
不会显示什么
<?php
// create a new curl resource
$ch = curl_init();// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);// grab URL and pass it to the browser
curl_exec($ch);// close curl resource, and free up system resources
curl_close($ch);
?>
把http://www.example.com换成https://www.x.com的话
不会显示什么
解决方案 »
- 关于apache服务器启动虚拟主机服务的问题,求大神指点
- smarty中的section怎么循环从数据库得到的数据?试了很多次.都不行
- 请教一个smarty+js的问题
- CSS样式无法被加载
- 注册完就登录的功能是怎么样实现的啊?
- 请问:在PHP中如何获得上个页面的变量
- session问题
- php能做webmail系统吗?
- ===========脚本高手请进!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!=============
- tp5新手求推荐视频教材
- 俺用Slackware Linux9.0搭建了个(Apache+PHP+MySQL)的WEB服务环境,
- 大家来看看,多了一个空格,不能运行?
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
验证的问题?
把它设为不验证就可以
但是为什么验证就不会出呢?