Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wanted to see how my site would respond to a request if the hostname is in capital letters instead of the usual lower-case. I tried doing that on FireFox and Chrome, but they automatically convert the hostname to lower-case letters. Then I tried using wget on terminal, but it too convert the request to lower-case. Is there any way I can test this?

share|improve this question
up vote 6 down vote accepted

You could use --header option of wget.

wget --header 'Host: EXAMPLE.COM' http://example.com

with --debug you could see actual request

wget --debug --header 'Host: EXAMPLE.COM' http://example.com


---request begin---
GET / HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Connection: Keep-Alive

---request end---

But actually it's useless unless you use some custom web server. All modern web servers take care of converting hostname to lowercase.

share|improve this answer
Thanks. It worked! – Question Overflow Apr 30 '14 at 8:23
Please use proper example domains rather than referencing commercial entities. – TRiG Apr 30 '14 at 12:23
@TRiG replaced with example.com – Alexey Ten Apr 30 '14 at 12:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.