Aregueifa

How to view the full headers of a redirect response

A redirect response contains a status code and headers that tell your browser where to go next. Headers may also reveal whether the move is temporary or permanent, whether the result can be cached, and which cookies or security policies apply. Viewing them is useful whenever a link produces an unexpected warning, opens a different domain, or adds tracking information.

This matters when a page offers little beyond a “Click here” button. The button may lead to another page on the same domain with a tracking-style query parameter, or it may perform a longer redirect chain. By inspecting the response headers, you can identify each hop and confirm the final destination without relying on the link’s wording.

Understand the response header block

The first line of an HTTP response is the status line, followed by fields such as Location, Cache-Control, Set-Cookie and Server. A blank line separates those headers from the response body. For a redirect, Location is normally the field carrying the destination URL.

The most important redirect fields are the status code and Location, but a complete inspection can also reveal security and privacy details. Look for headers such as Strict-Transport-Security, Content-Security-Policy, Referrer-Policy, Set-Cookie and X-Robots-Tag. Services and content-delivery networks may add proprietary fields beginning with X-, while proxy systems often provide Via.

Header names are case-insensitive, so Location and location have the same meaning. Some headers may be absent because the server did not send them or an intermediary removed them. Also remember that response headers differ from request headers: the browser’s User-Agent, cookies sent with the request and referrer information appear in the request, not in the redirect instructions themselves.

Inspect redirects in browser developer tools

Chrome and Edge provide a straightforward way to examine each request. Open Developer Tools with Ctrl+Shift+I on Windows or Command+Option+I on macOS, select Network, enable Preserve log, and reload the page. Click the request that initiated the movement, then open its Headers panel and examine the response section.

The Network log records redirects as separate entries. A request returning 301 Moved Permanently will normally be followed by another request to the URL named in Location. Further entries indicate a longer chain. If the first panel says “Provisional headers”, the final response has not arrived yet; wait for the completed request and inspect that entry instead.

Firefox uses a similar Network panel, opened with Ctrl+Shift+I or Command+Option+I. Safari users can enable the Web Inspector through Develop in the menu bar, select Network, and retain the log while reproducing the click. In every browser, View Source is not a substitute for developer tools because it usually shows reconstructed HTML rather than the raw HTTP exchange.

Read redirect headers with cURL

The cURL command-line tool is useful when you need a text record that can be copied or saved. This command displays the headers for the first response while discarding its body:

curl -sS -D - -o /dev/null "https://example.com.au/click"

The -D - option writes response headers to standard output, while -o /dev/null prevents the body from cluttering the result. Add -L when you want to follow redirects and print the header block from every hop:

curl -sS -L -D - -o /dev/null --max-redirs 10 "https://example.com.au/click"

For a more detailed exchange, use curl -v. Lines beginning with > show the request and lines beginning with < show the response. On Windows, run curl.exe to avoid confusion with older PowerShell aliases; macOS and most Linux systems already provide curl directly. Avoid relying on curl -I for the full picture because it sends a HEAD request, and a server can respond differently to HEAD than to the GET generated by a normal click.

Interpret status codes and destinations

A 301 or 308 response indicates a permanent move, whereas 302 or 307 indicates a temporary one. A 307 preserves the original request method, while many 302 responses cause the browser to issue a new GET. A 303 See Other also directs the client to retrieve the destination using GET. A 304 Not Modified is not a redirect; it means the browser can use a cached response.

The Location value may be absolute or relative. A relative value is resolved against the URL that returned it, which can make the apparent destination difficult to recognise. Check the scheme, hostname, port and path rather than reading only the final folder name. Internationalised domains may also appear in punycode, so compare the decoded and encoded forms when assessing a suspicious address.

An editorial link labelled breaking sports updates should be tested in the same way as any other redirect. Its first response should identify the next URL, and every later hop should remain visible. This is particularly important for Australian news and sports publishers because campaign links may pass through advertising or referral systems before reaching the publisher’s own site.

Trace tracking parameters safely

A redirect can stay on the same domain while adding parameters such as utm_source, utm_campaign, gclid or a publisher-specific referral code. These values can support campaign measurement, but they can also make two otherwise identical URLs appear different. Compare the path and hostname before and after the redirect, and inspect the complete query string rather than stopping at the visible domain.

A page reached from a gaming explainer such as Doghouse Megaways demo guide deserves the same careful check. Identify the final hostname, confirm whether the destination has an Australian legal notice, and distinguish informational material from an operator’s actual service. Query parameters are not automatically malicious, although embedded identifiers can contribute to profiling when combined with cookies and other stored information.

Avoid sharing complete header dumps without checking them first. A Set-Cookie value may contain a session identifier, and a redirect URL may contain a token intended only for that browser. Redact sensitive values before attaching the output to a support request or public troubleshooting post. Browser developer tools may also conceal certain values, which is useful for privacy but means a separate command-line inspection may be needed when investigating an unfamiliar site.

Apply the checks to Australian sites

Australian conditions add several useful comparison points. The Date header normally uses GMT or UTC, so convert it carefully: Sydney and Melbourne observe AEST or AEDT, Adelaide uses ACST or ACDT, and Perth remains on AWST. This helps determine whether a cached response is stale. A .com.au hostname is a relevant local signal, but it is not proof that the operator is authorised to offer gambling or another regulated service.

Lottery arrangements differ across Australian states and territories, and an international article such as Australian lottery guide may direct readers toward products with different rules or licensing. Verify lottery information against the official operator for the relevant state. Likewise, online casino access and advertising rules vary between jurisdictions such as New South Wales, Victoria and Queensland; a demo page or overseas guide is not evidence of Australian approval.

Link previews can also change the sequence you would see by hand. In Australian offices, it is common for a tracked URL to arrive through Microsoft Teams or Slack, where the messaging client may request the destination before the recipient clicks it. A further complication arises when redirects are produced by JavaScript or a Refresh header rather than an HTTP Location field. Reproduce the original click in a private window with the Network log preserved, compare it with the cURL result, and confirm the visible domain against the operator’s Australian status.