Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(bug) request to http /get shows https in url field #567

Open
asoorm opened this issue Jul 17, 2019 · 1 comment
Open

(bug) request to http /get shows https in url field #567

asoorm opened this issue Jul 17, 2019 · 1 comment

Comments

@asoorm
Copy link

@asoorm asoorm commented Jul 17, 2019

curl http://httpbin.org/get
{
  "args": {},
  "headers": {
    "Accept": "*/*",
    "Host": "httpbin.org",
    "User-Agent": "curl/7.61.0"
  },
  "origin": "82.71.60.185, 82.71.60.185",
  "url": "https://httpbin.org/get"                      <------ should be http, not https.
}

TLS may have been applied internally - but the purpose of this endpoint is to return what the client sent, not what it was transformed to by httpbin.org internal services.

@gaul
Copy link
Contributor

@gaul gaul commented Aug 25, 2019

When I run the docker container locally, I see the unencrypted URL:

$ curl http://127.0.0.1/get                                                                                     
{
  "args": {}, 
  "headers": {
    "Accept": "*/*", 
    "Host": "127.0.0.1", 
    "User-Agent": "curl/7.65.3"
  }, 
  "origin": "172.17.0.1", 
  "url": "http://127.0.0.1/get"
}

Does httpbin.org have some additional configuration? I too would like to see whether the connection is HTTP or HTTPS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.