hachi029 commented on PR #12780:
URL: https://github.com/apache/apisix/pull/12780#issuecomment-3584503293
I’ve also verified this on other computers and encountered the same issue:
1. OK:
~ curl -v httpbin.org/ip
\* Host httpbin.org:80 was resolved.
\* IPv6: (none)
\* IPv4: 52.6.181.49, 54.227.38.221, 3.219.87.227, 3.232.74.21,
52.44.182.178, 100.29.246.92
\* Trying 52.6.181.49:80...
\* Connected to httpbin.org (52.6.181.49) port 80
\> GET /ip HTTP/1.1
\> Host: httpbin.org
\> User-Agent: curl/8.7.1
\> Accept: \*/\*
>
\* Request completely sent off
< HTTP/1.1 200 OK
< Date: Thu, 27 Nov 2025 07:17:22 GMT
< Content-Type: application/json
< Content-Length: 33
< Connection: keep-alive
< Server: gunicorn/19.9.0
< Access-Control-Allow-Origin: \*
< Access-Control-Allow-Credentials: true
<
{
"origin": "223.x.x.x"
}
\* Connection #0 to host httpbin.org left intact
2. failed with Header `Host: 127.0.0.1:8090` just like APISIX does in the
getting stated tutorial.
➜ ~ curl -v httpbin.org/ip -H "Host: 127.0.0.1:8090"
\* Host httpbin.org:80 was resolved.
\* IPv6: (none)
\* IPv4: 54.227.38.221, 3.219.87.227, 3.232.74.21, 52.44.182.178,
100.29.246.92, 52.6.181.49
\* Trying 54.227.38.221:80...
\* Connected to httpbin.org (54.227.38.221) port 80
\> GET /ip HTTP/1.1
\> Host: 127.0.0.1:8090
\> User-Agent: curl/8.7.1
\> Accept: \*/\*
>
\* Request completely sent off
\* Recv failure: Connection reset by peer
\* Closing connection
curl: (56) Recv failure: Connection reset by peer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]