Inspecting a minimal page with curl
To see what a minimal page loads in the background, separate the visible button from the raw page: it may contain redirect instructions, tracking pixels, stylesheets, scripts or a meta refresh. The rendered layer can look harmless while the HTML and HTTP responses reveal what the browser is being prepared to load.
Curl is a command-line transfer tool that sends requests and saves responses without running JavaScript. It ships with current macOS, Windows 10 and 11 as curl.exe, and most Linux systems, allowing you to inspect a page before opening it in a full browser.
A useful check is to capture the first response, trace redirects, extract linked files and compare timings. Work from a copy of the URL, keep certificates verified, and avoid entering credentials or payment details on a page whose ownership cannot be established.
Begin with a reproducible first request
Start by confirming curl is available with curl --version, then save both the response headers and body. Replace the example address with the exact URL, including any query string:
url='https://example.com/minimal'
curl -sS --proto '=https,http' -c cookies.txt \
-D headers.txt -o page.html "$url"
The -D option records headers, while -o writes the body to disk. Run wc -c page.html and file page.html to see whether the page is genuinely tiny or merely displays little. Do not add -k unless you are deliberately diagnosing a certificate problem; disabling verification changes the trust conditions of the test.
Trace redirects without losing the chain
Follow a bounded number of HTTP redirects and retain every hop:
curl -sS -L --max-redirs 10 --max-time 30 \
--proto '=https,http' --proto-redir '=https,http' \
-D redirects.txt -o final.html "$url"
The Location header shows each destination, and redirects.txt preserves the sequence and status codes. If the chain ends at the redirected destination, keep both URLs and timestamps so a redirect is not mistaken for original content. A 301 or 308 normally signals a permanent move; 302 and 307 are temporary variants, while 303 explicitly changes the request method.
Curl follows HTTP Location headers, not a <meta http-equiv="refresh"> tag or JavaScript such as location.href. A maximum of ten hops and a 30-second timeout prevent a redirect loop from delaying the inspection.
Read the headers and status
To review the headers while discarding the body, run:
curl -sS --proto '=https,http' -D - -o /dev/null "$url"
Check Content-Type, Content-Length, Cache-Control, Set-Cookie, Content-Security-Policy and Server, then note the status code and final URL. A HEAD request is quick, but some servers answer it differently from a normal GET, so use GET when the distinction matters. If curl receives a 403 while a browser works, compare the request headers rather than assuming the browser has discovered hidden content.
Under Australia’s Privacy Act 1988, organisations covered by the Australian Privacy Principles must handle personal information according to specific rules. A small page can still set identifiers or call analytics, although the presence of tracking does not prove non-compliance; check the entity’s privacy notice before assuming who receives the data.
Extract referenced files
Search the saved HTML for external and relative references:
grep -Eo '(src|href)="[^"]+"' page.html
grep -Eo 'https?://[^"<>[:space:]]+' page.html | sort -u
Absolute URLs can be fetched directly, while relative paths must be resolved against the page’s final address and any <base href>. Inspect linked CSS for url(...) assets and JavaScript for API endpoints. A navigation item can target a separate path, such as the menu route, so fetch each URL separately with curl -sS -b cookies.txt -D asset-headers.txt -o asset.bin "$asset" and record its status, content type and size.
Account for browser-only behaviour
Curl does not execute scripts, service workers, WebSockets or browser background tasks. It retrieves a stylesheet or image when explicitly requested, but a script may create further requests that never appear in the initial HTML.
For dynamic behaviour, reproduce the tap many Australians make on shared links in email, social feeds or messaging apps, often over mobile data. Open the page in a browser’s developer tools, select Network, preserve the log and reload. Compare its request list with curl, then copy a suspicious request as cURL. Remove cookies, session tokens and credentials before reproducing or sharing that command.
Compare timing and network paths
Measure DNS lookup, connection, TLS, first-byte and total time with curl’s write-out variables:
curl -sS -L --proto '=https,http' --proto-redir '=https,http' \
-o /dev/null \
-w 'status=%{http_code} ip=%{remote_ip} dns=%{time_namelookup}s connect=%{time_connect}s tls=%{time_appconnect}s first_byte=%{time_starttransfer}s total=%{time_total}s redirects=%{num_redirects}\nfinal=%{url_effective}\n' \
"$url"
time_starttransfer shows when content began arriving, while time_total includes redirects and the complete transfer. remote_ip, http_code, num_redirects and url_effective help explain the route. Repeat the request several times because a cached response, a CDN edge or a temporary server fault can change the result.
Location matters in Australia. Fixed broadband over NBN or fibre in Sydney, Melbourne or Brisbane may reach a nearby CDN edge quickly, while mobile or regional traffic can take a different path and show higher latency. Server logs often use UTC, but Australia spans several time zones; daylight saving changes clocks in New South Wales, Victoria and South Australia, while Brisbane remains on AEST.
Apply Australian legal and market checks
A .com.au domain is a useful signal in the Australian market, but it is not proof that the destination is local or trustworthy. Redirects often pass through affiliate or review pages; before relying on the linked review page, look for a matching legal entity name, ABN or ACN, physical contact details, terms and a complaints process.
The Australian Consumer Law applies nationally, alongside state and territory fair-trading rules, so claims about prizes, products or endorsements need a factual basis. The Spam Act 2003 also matters if the page opens a commercial messaging list. If ownership, pricing or data handling remains unclear, stop before submitting information and check Scamwatch or ReportCyber guidance.
Run the first GET now and save headers.txt, cookies.txt and page.html; then trace redirects and list every referenced asset with its status and size. Keep the command, timestamps and final URL together so the result can be compared later or shared with a site owner, security team or consumer regulator.
If the destination is unexpected, close the page and preserve the evidence rather than testing it with personal information. A compact curl transcript turns an anonymous “click here” page into a verifiable record of its redirects, requests and network behaviour.