$postData['file'] = "@".getcwd()."/../attachment/qianbao/{$customer_id}.zip";

$this->log->info("Qianbao file path:".$postData['file']);
//$postData['sign'] = bin2hex(md5($str_sign)); //'file' => '@d:\usr\www\translate\document\Readme.txt'
//$postData['file'] = "@d:\home\oracle\xpay-1.0.0\attachment\qianbao\{$customer_id}.zip"; $postData['sign'] = md5($str_sign); $this->log->info("Qianbao Sign:".$postData['sign']); $postUrl = "http://www.happygrp.com/agent/merchant/import";//生产 $curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $postUrl);
curl_setopt($curl, CURLOPT_USERAGENT,'Opera/9.80 (Windows NT 6.2; Win64; x64) Presto/2.12.388 Version/12.15');
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); // stop verifying certificate
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
//curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
$r = curl_exec($curl);
$e = curl_error($curl);
curl_close($curl);

  

最新文章

  1. lua-resty-websocket安装和测试
  2. Java内存回收机制
  3. MINIX3 进程调度分析
  4. Nginx 开启 path_info功能
  5. Factory Girl使用
  6. opencv china 网站,好1376472449
  7. Python LOGGING使用方法
  8. 《sift算法详解》阅读笔记
  9. eclispe 出现超内纯错误
  10. 读写锁ReadWriteLock和缓存实例
  11. 【USACO 2.1.4】荷斯坦奶牛
  12. hdu 2583 permutation 动态规划
  13. java虚拟机学习-JVM调优总结-调优方法(12)
  14. [HEOI2016]排序
  15. 如何在webpack中成功引用到图片?
  16. Linux基础命令---dmeg显示内核输出
  17. rebar3自动编译
  18. 并发修改异常(ConcurrentModificationException)
  19. go-restful 实现一个web server
  20. ChromeSwitchySharp代理设置步骤

热门文章

  1. emmet 配置文件
  2. 过滤器 & 监听器 & 拦截器
  3. ABP(ASP.NET Boilerplate Project)学习总结
  4. 在windows服务中使用定时器
  5. Linux Shell/Bash wildcard通配符、元字符、转义符使用
  6. 使用@Async注解创建多线程,自定义线程池
  7. SpringDataRedis
  8. 【JVM】jdk1.8-jetty-swap被占满问题排查
  9. Java 之 request 案例——用户登录
  10. Java集合框架总结2_Map