question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Host name in URL not shown for https requests

See original GitHub issue

The current release displays the URL just fine:

https://encrypted.google.com/search?q=foo

The current development version, however, only displays the IP:

https://173.194.70.101/search?q=foo

HTTP requests are not affected. The issue appears first in 9130cd6.

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
clouedoccommented, Aug 20, 2019

Note to future readers: the cli option enabling host-header-as-url-authority is now --showhost

It can also be activated under the option menu (press uppercase O while in terminal mode) next to “showhost” (options are alphabetically sorted).

2reactions
yinguohangcommented, Apr 19, 2021

If you are using python script and try to get the url, you might try request.pretty_host instead of request.host.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get host name with port from a http or https request
You can use HttpServletRequest.getScheme() to retrieve either "http" or "https". Using it along with HttpServletRequest.getServerName() should be enough to ...
Read more >
Why do HTTPS requests include the host name in clear text?
To clarify: I used to think that the HTTP Host header was somehow left visible when HTTPS is used. That's not the case....
Read more >
URL.hostname - Web APIs - MDN Web Docs - Mozilla
The hostname property of the URL interface is a string containing the domain name of the URL.
Read more >
The components of a URL - IBM
It can be HTTP (without SSL) or HTTPS (with SSL). A host. The host name identifies the host that holds the resource. For...
Read more >
Enabling HTTPS on your servers - web.dev
If you have many hostnames or subdomains, they each need to use the right certificate. Warning. Warning: If you've already completed these steps ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found