Mobile app version of vmapp.org
Login or Join
Murray155

: How do you send a URL request with upper-case characters in the domain name? I wanted to see how my site would respond to a request if the hostname is in capital letters instead of the usual

@Murray155

Posted in: #CaseSensitive #Domains #Testing #Url

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray155

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gail5422790

You could use --header option of wget.

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

with --debug you could see actual request

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

---request begin---
GET / HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Host: EXAMPLE.COM
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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme