How to use vless+ws+tls to proxy #234
-
I try to use normal http proxy,It's ok :
But my proxy server uses vless+ws+tls,How do i rewrite the code |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I guess your requirement is to use a V2Ray proxy within HttpClientHandler. The easiest way is to run a V2Ray client locally, which will provide a local HTTP proxy, and then just use this HTTP proxy directly. If you want to connect to the V2Ray server directly in HttpClientHandler without using the local HTTP proxy, it's a challenging task, because the HttpClientHandler class is mainly used for handling HTTP proxies, while the V2Ray is not a standard HTTP proxy. Although it is theoretically possible, it requires a certain degree of modification or inheritance of the HttpClientHandler class, as well as an in-depth understanding of the V2Ray communication protocol. |
Beta Was this translation helpful? Give feedback.
I guess your requirement is to use a V2Ray proxy within HttpClientHandler. The easiest way is to run a V2Ray client locally, which will provide a local HTTP proxy, and then just use this HTTP proxy directly. If you want to connect to the V2Ray server directly in HttpClientHandler without using the local HTTP proxy, it's a challenging task, because the HttpClientHandler class is mainly used for handling HTTP proxies, while the V2Ray is not a standard HTTP proxy. Although it is theoretically possible, it requires a certain degree of modification or inheritance of the HttpClientHandler class, as well as an in-depth understanding of the V2Ray communication protocol.