push推送相关注意事项
2017-04-01 11:20
686 查看
1.curl的问题
配置https的证书http://blog.csdn.net/weixin_35884835/article/details/52588157
2.ios push 针对http1.0的,需要服务器开通2195这个端口
3.nodejs报下面的错误 是证书过期了
4.抓包
5.华为的push是要像华为申请一个access_token的 然后更改证书的的时候需要同步删除之前保存的access_token
出现这个错误是device token错误的原因导致的
可能是调试期间 access_token没有随着证书的变化而变化
6.忽略https的证书 加上 -k这个参数,下面这个报错就是需要证书验证,可以忽略
curl命令忽略
yii2 处理忽略https证书
配置https的证书http://blog.csdn.net/weixin_35884835/article/details/52588157
2.ios push 针对http1.0的,需要服务器开通2195这个端口
3.nodejs报下面的错误 是证书过期了
2017-02-15 08:07:03 16621>>>>>>> Socket undefined error occurred:Error: socket hang up 2017-02-15 08:07:03 16621<<<<<<< TypeError: Cannot read property 'length' of undefined
4.抓包
tcpdump tcp port 443 -i any -Xs 1024 -nn tcpdump tcp port 80 -i any -As 0 -nn netstat -nap 判断哪个端口被调用
5.华为的push是要像华为申请一个access_token的 然后更改证书的的时候需要同步删除之前保存的access_token
{"message":"No permission to send message to these tmIDs.","requestID":"14900642050202330435","resultcode":20203}
出现这个错误是device token错误的原因导致的
可能是调试期间 access_token没有随着证书的变化而变化
6.忽略https的证书 加上 -k这个参数,下面这个报错就是需要证书验证,可以忽略
[root@localhost ~]# curl https://ip/index.php curl: (60) Peer's Certificate has expired. More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
curl命令忽略
curl https://ip -k
yii2 处理忽略https证书
$response = $curl->reset()->setOption( CURLOPT_POSTFIELDS, http_build_query($data_array) )->setOption(CURLOPT_SSL_VERIFYPEER, false)->post($url);
相关文章推荐
- dojo mobile笔记1--moveTo与url的区别与共性以及相关注意事项
- Galaxy Nexus刷机教程及相关注意事项
- Qt中如何使用样式表QPalette以及相关注意事项(转)
- JS模态窗体的运用,以及相关注意事项(有用到window.returnValue)
- [开发笔记]-Windows Service服务相关注意事项
- iOS Push Notification注意事项
- 线程安全使用相关注意事项
- Zend Framework自定义Helper类相关注意事项总结
- 线程安全使用相关注意事项
- SCCM客户端推送安装之注意事项
- apple in app purchase 的测试相关注意事项。。
- Qt中如何使用样式表QPalette以及相关注意事项
- Qt Creator发布release软件相关注意事项 .
- DllMain相关注意事项
- openstack配置注意事项(主要是网络相关)
- android bluetooth 移植相关注意事项
- linux上的ssh上改到与ssh相关的配置时注意事项
- Qt中如何使用样式表QPalette以及相关注意事项
- lucene4.3注意事项以及相关代码
- Qt中如何使用样式表QPalette以及相关注意事项