libp2p / go-libp2p-examples

Example libp2p applications
MIT License
339 stars 145 forks source link

http-proxy failed when visit https website #77

Closed fxsjy closed 4 years ago

fxsjy commented 4 years ago

libp2p is cool, I am studying it , and want to use the example "http-proxy" to build my own proxy.

However, I find it only works for http website, not for the https website.

I check the code, which use DefaultTransport to forward https request. And, I am not sure whether the problem occurs here.

jsign commented 4 years ago

I think #83 will help with that.

fxsjy commented 4 years ago

@jsign , the proxy should handle "CONNECT" method, otherwise the remote https server can't understand "CONNECT"