http2tcp icon indicating copy to clipboard operation
http2tcp copied to clipboard

使用http2tcp client模式的时候出现问题

Open alextsao1999 opened this issue 3 years ago • 2 comments

命令: http2tcp -c -d 127.0.0.1:222 -e https://proxy/tcp -t server

输出:

2022/09/21 15:44:14 statusCode != 101: 302 Moved Temporarily: <html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>openresty/xx</center>
</body>
</html>

不知道这个是什么情况

alextsao1999 avatar Sep 21 '22 07:09 alextsao1999

看起来是你的 nginx 的 location 配置有误。

你可以尝试直接用 curl 请求一下你的 https://proxy/tcp 会是什么效果。

movsb avatar Sep 21 '22 12:09 movsb

我更新了一下代码,现在能打印更详细的错误信息(302 时的重定向 URL),你可以重新编译试试看看。

movsb avatar Sep 21 '22 13:09 movsb