跳到主要内容
CNode

node通过squid代理发起https请求问题

问答
113760740480发布于 11 年前
038840

请问有人试过通过代理(squid2.6等)发起node的https请求吗? 通过squid代理发起请求总是收到如下错误页面

Unsupported Request Method and Protocol Squid does not support all request methods for all access protocols. For example, you can not POST a Gopher request.

我在网上找了2天资料了,node发起http请求基本的做法都是http.requst(options,callback),options里面host设置代理ip,port设置代理端口,path是实际访问的url,尝试了很多都不行。

查看回复

回复 (0)

暂无回复,成为第一个参与讨论的人。

参与回复

登录后即可参与回复。登录