goddyZhao / nproxy

A cli proxy tool specialized in file replacing
http://goddyzhao.me/nproxy
MIT License
510 stars 87 forks source link

访问https://www.alipay.com/出现404 #20

Open yaniswang opened 11 years ago

yaniswang commented 11 years ago
npm install nproxy -g
nproxy
[INFO] NProxy started on 8989!
[INFO] connect to https server successfully!
[ERROR] url: /
[ERROR] msg: connect ECONNREFUSED
[INFO] connect to https server successfully!
[ERROR] socket error read ECONNRESET

Windows 7

所有浏览器均打不开HTTPS网址,显示404

似乎是重定向到127.0.0.1

如果我本地127.0.0.1开了80端口,就会从80端口上获取结果,关了80则显示404

可以拿支付宝网址测试:https://www.alipay.com/

goddyZhao commented 11 years ago

你好,你的操作顺序是怎么样的?能把重现步骤写出来吗?

nproxy默认起来会是监听8989端口,所以你要让nproxy截获浏览器的http/https请求,需要把浏览器的代理http和https都指向到: 127.0.0.1:8989

具体参考:How to set browser's proxy

yaniswang commented 11 years ago

访问顺序就是上面的

  1. 安装好nproxy
  2. 执行:nproxy
  3. 打开Firefox,设置代理到8989
  4. 访问https://www.alipay.com/

你可以试试上面这个过程

goddyZhao commented 11 years ago

Ok, 多谢!我能重现了,多谢反馈~ 我尽快看看

goddyZhao commented 11 years ago

Sorry,我刚刚试的是https://alipay.com 这个本身alipay就不支持。

我试了https://www.alipay.com, 没有出现ECONNREFUSED,只是部分样式文件没有代理成功。

yaniswang commented 11 years ago

C:\Users\Administrator>nproxy [INFO] NProxy started on 8989! [INFO] connect to https server successfully! [INFO] connect to https server successfully! [INFO] connect to https server successfully! [INFO] connect to https server successfully! [INFO] connect to https server successfully! [INFO] connect to https server successfully! [ERROR] socket error read ECONNRESET [INFO] connect to https server successfully! [ERROR] socket error read ECONNRESET [INFO] connect to https server successfully! [INFO] connect to https server successfully! [INFO] connect to https server successfully! [INFO] connect to https server successfully! [INFO] connect to https server successfully! [INFO] connect to https server successfully! [INFO] connect to https server successfully! [INFO] connect to https server successfully!

nproxy版本号: v1.3.1

打开所有的HTTPS,都是请求本地80端口了

所有HTTP正常

yaniswang commented 11 years ago

对了,是windows机器 你是不是在windows机器上测试的?

goddyZhao commented 11 years ago

哦,对!我用了Mac,Mac下没有问题。Windows我刚刚试了,确实有你的问题~~ 谢谢!

hlissnake commented 10 years ago

静,手机端能否成功?我一直没反应啊