4.2 Request Not Sent Through a Proxy

In this example, the request is not sent through a proxy, so the Request-URI does not contain a host name. Since the host and query portions of the URI both contain a non-ASCII character, the client has chosen to use the extended syntax, and the HTTP request appears as follows (possibly along with other HTTP headers).

 GET /?søster HTTP/1.1
 Host: bønne.contoso.com

In this request, the LATIN SMALL LETTER O WITH STROKE is encoded as follows:

  • In the query component of the URI in the request line, it appears encoded in the ANSI Baltic code page (octet value 184 = 0xB8). As such, other HTTP utilities might misinterpret the "ø" as being (in ISO-8859-1) a CEDILLA ("¸" which is Unicode U+00B8) and display it as "s¸ster".

  • In the Host header, the client chooses to use UTF-8 and encodes the "ø" as 0xC3 0xB8. As such, other HTTP utilities might misinterpret the "ø" as being (in ISO-8859-1) a LATIN CAPITAL LETTER A WITH TILDE ("Ã" which is Unicode U+00C3) followed by CEDILLA ("¸" which is Unicode U+00B8) and display it as "bønne.contoso.com".