码迷,mamicode.com
首页 >  
搜索关键字:php_curl    ( 351个结果
php curl模拟post请求的示例代码
'tanteng' // 'password' => 'password');$ch = curl_init ();// print_r($ch);curl_setopt ( $ch, CURLOPT_URL, $uri );curl_setopt ( $ch, CURLOPT_POST, 1 )....
分类:Web程序   时间:2015-11-18 19:28:23    阅读次数:148
php curl的详细教程
cURL可以使用URL的语法模拟浏览器来传输数据,因为它是模拟浏览器,因此它同样支持多种协议,FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE 以及 LDAP等协议都可以很好的支持,包括一些: HTTPS认证,HTTP POST方法,HTTP PU...
分类:Web程序   时间:2015-11-16 19:34:37    阅读次数:233
php curl上传文件
curl是个好东西,之前自己搞过一个小的项目来帮朋友刷票,后来慢慢发展,做了些可以刷各种视频播放、评论的小平台,当然各大网站也不是吃素的,各种防刷机制我这里就不多扯了,里边也有各种坑自己一步一步躺了过来...
分类:Web程序   时间:2015-11-15 17:53:46    阅读次数:228
json_encode无返回结果
今天写php curl模拟客户端访问测试一个抽奖post数据,拿回来的数据是json,使用json_decode函数就是没结果,百度谷歌好久。终于发现是BOM的文件头造成的,微软为utf-8文件添加了三个字在文件头部,需要过滤掉才能被decode。$result = trim($result, "\...
分类:Web程序   时间:2015-10-28 17:03:45    阅读次数:169
PHP CURL抓取网页 simple_html_dom类
抓取网页数据后 数据录入到discuz中load($lines_string); $ret = $dom->find(".dataList ul",1)->innertext; //数据分析 // print_r($ret); return $ret;}$ret = urlText...
分类:Web程序   时间:2015-10-25 19:14:44    阅读次数:240
curlmulti-PHP
关于 这是目前最好的php curl类库,很多开发者基于此库开发项目。类库是对curl_multi_*系列函数的封装,性能、扩展性、易用性、性能都是最高水平,很强大。 需求 PHP 5.1.0 + 特性 极低的CPU和内存使用率。 速度在...
分类:Web程序   时间:2015-10-20 18:05:36    阅读次数:233
PHP CURL cookies
php的curl扩展,在手册中有示例。先把cookie保存到一个文件,然后在curl中引用这个文件就可以了。 取cookie的参数是: curl_setopt ( $ch, CURLOPT_COOKIESESSION, true ); curl_setopt ( $ch, CURLOPT_COOKIEJAR...
分类:Web程序   时间:2015-10-18 14:12:38    阅读次数:131
解决PHP curl https时error 77(Problem with reading the
解决PHP curl https时error 77(Problem with reading the SSL CA cert (path? access rights?)) 服务器环境为CentOS,php-fpm,使用curl一个https站时失败,打开curl_error,捕获错误:Problem with reading the ...
分类:Web程序   时间:2015-10-18 01:28:35    阅读次数:212
curl PHP 脚本例子
上网查了写资料写了个自己需要的PHP Curl函数,调用的是百度API获取数据:function getData($add) { $post_data = array( 'ak=kkkk', 'callback=renderOption', 'output=json', 'city=XXX, 'a....
分类:Web程序   时间:2015-09-20 20:22:09    阅读次数:177
php curl模拟post提交数据示例
<? header("Content-type: text/html; charset=utf8"); /* ?* 提交请求 * @param $header array 需要配置的域名等header设置 array("Host: devzc.com"); * @param $data string 需要提交的数据 ‘user=xxx&qq=xxx...
分类:Web程序   时间:2015-09-19 11:06:34    阅读次数:201
351条   上一页 1 ... 20 21 22 23 24 ... 36 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!