Request diagnostics
Values the browser can see about the current request. Useful for confirming which host answered, which path resolved, and whether TLS is in play.
Note: these values come from
window.location and navigator in the
browser — they reflect the requested host, not the backend that served the file. To stamp the actual origin
machine name, use a server-side line (see the bottom of this page).
| Requested host | |
|---|---|
| Full URL | |
| Path | |
| Protocol | |
| Port | |
| Loaded at (client) | |
| User agent | |
| Referrer | |
Stamping the real origin on IIS
Rename this file to .aspx and add a line like the following to print the
actual server that handled the request — useful when several origins sit behind one front door and you need
to know which answered:
<%= Environment.MachineName %> <%= Request.Url %>
Classic ASP equivalent: <%= Request.ServerVariables("SERVER_NAME") %>.
Either way the server name is rendered at the origin, so it survives proxying and tells you the truth about
routing.