nproxy icon indicating copy to clipboard operation
nproxy copied to clipboard

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

Open yaniswang opened this issue 11 years ago • 8 comments

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/

yaniswang avatar May 15 '13 23:05 yaniswang

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

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

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

goddyZhao avatar May 16 '13 02:05 goddyZhao

访问顺序就是上面的

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

你可以试试上面这个过程

yaniswang avatar May 16 '13 02:05 yaniswang

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

goddyZhao avatar May 16 '13 02:05 goddyZhao

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

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

goddyZhao avatar May 16 '13 02:05 goddyZhao

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 avatar May 16 '13 02:05 yaniswang

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

yaniswang avatar May 16 '13 02:05 yaniswang

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

goddyZhao avatar May 16 '13 03:05 goddyZhao

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

hlissnake avatar Sep 18 '14 05:09 hlissnake