Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unicode HTTP Host: Header Field?

What does the Host: header look like for a Unicode domain. e.g. æon.com in the MOST STANDARD format (assuming RFC 5987? or is it something else?)?

I am developing a transparent proxy that will need to work across different browsers and languages.

Could you paste an example of a Host: æon.com HTTP header, same as a Wireshark Packet Dump would produce, un-decoded and specifically the Host: field.

like image 325
unixman83 Avatar asked Jan 22 '26 01:01

unixman83


2 Answers

International domain names are encoded in Punycode. "æon.com" is represented by "xn--on-0ia.com".

like image 100
deceze Avatar answered Jan 24 '26 16:01

deceze


a) RFC 5987 is only applicable to certain header field parameters, not entire header fields.

b) The host header field should be whatever the host name in the HTTP URI (!!!, not IRI), was (as explained by deceze, puny-coded).

like image 28
Julian Reschke Avatar answered Jan 24 '26 17:01

Julian Reschke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!