cakephp发送post请求
来源:互联网 发布:js单例和实际化 编辑:程序博客网 时间:2024/06/09 20:39
if ($this->config['persistent'] == true) {
$tmp = null;
$this->connection = @pfsockopen($scheme.$this->config['host'], $this->config['port'], $errNum, $errStr, $this->config['timeout']);
} else {
$this->connection = @fsockopen($scheme.$this->config['host'], $this->config['port'], $errNum, $errStr, $this->config['timeout']);
$tmp = null;
$this->connection = @pfsockopen($scheme.$this->config['host'], $this->config['port'], $errNum, $errStr, $this->config['timeout']);
} else {
$this->connection = @fsockopen($scheme.$this->config['host'], $this->config['port'], $errNum, $errStr, $this->config['timeout']);
}
发现 $this->connection总是返回false,原来是因为没有打开openssl
解决方案:windows下,在php.ini中打开opensll扩展,并将php目录下的libeay32.dll和ssleay32.dll两个库拷贝到system32下
linux下,重新编译php,编译时加上参数--enable-ssl(具体参看configure的help)
0 0
- cakephp发送post请求
- IWebBrowser2 发送post请求
- WebClient发送POST请求
- android发送post请求
- Httpclient发送POST请求
- .NET发送POST请求
- IWebBrowser2 发送post请求
- httpClient发送post请求
- python发送post请求
- Android发送post请求
- Android发送post请求
- Ajax发送POST请求
- python发送post请求
- Android发送post请求
- C++ 发送POST请求
- AFNetWorking发送post请求
- linux发送post请求
- php发送post请求
- Swift学习之十六:枚举(Enumeration)
- 最长最短单词
- Apache+Tomcat通过ajp_proxy配置php和jsp环境
- 点与指向符操作
- 放的地方方法
- cakephp发送post请求
- codeforces 91B Queue 线段树,简单查询
- leetcode——Divide Two Integers 不用乘除取余操作求除法(AC)
- 二叉树前序Preorder遍历和后序Postorder遍历的非递归实现
- 回调函数
- 关于Google Guava
- OracleService服务不见了|OracleServiceXE服务没有了
- method 与 function的区别
- 【推荐】.NET使用NPOI组件将数据导出Excel