https redirect is not working, but in console with curl it works

Sandra Lopez 1 Reputation point
2022-09-14T01:39:00.133+00:00

I'm getting this output in console:

curl -v -k --resolve example.com:443:EXTERNAL_IP https://example.com
* Added example.com:443:EXTERNAL_IP to DNS cache
* Hostname example.com was found in DNS cache
* Trying EXTERNAL_IP:443...
* Connected to example.com (EXTERNAL_IP) port 443 (#0)
* schannel: disabled automatic use of client certificate
* schannel: ALPN, offering http/1.1
* schannel: ALPN, server accepted to use http/1.1

GET / HTTP/1.1
Host: example.com
User-Agent: curl/7.79.1
Accept: /

But in Browser:

This site can’t be reached
example.com took too long to respond.
Try:

Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_TIMED_OUT

Note: I'm using TLS.

What I'm missing?

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,456 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. David Broggy 6,291 Reputation points MVP Volunteer Moderator
    2022-09-14T19:59:22.137+00:00

    Hi SandraLopez,
    This isn't really an azure or a k8s question, it's a network question.
    It's not clear in your question if your 'console' is the same device as where you're running your browser.
    That could make a big difference to the troubleshooting tips provided here.
    Generally speaking such an error would be because your pc cannot resolve the same hostname as your console can.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.