Seeing Server Responses with cURL on the Command Line

A page that never appears gives you almost nothing to work with: a blank panel, a spinner that stops, or an error message written for people with no access to technical detail. Underneath every page load sits a simple exchange — a request leaves your device, a response comes back from a server — and cURL prints that exchange as it happens. It is the quickest way to tell whether the fault belongs to the site, your connection, your DNS resolver or the network path in between. Learn more about Cyberschooldps.net.

The reply contains three layers: a status line, a block of headers, and the body. The status line says whether the request worked (200), was moved (301, 302), was refused (403, 404), was throttled (429) or failed on the server (500, 502, 504). The headers reveal who answered, whether a cache or CDN served the bytes, how long the reply took and where a redirect points. The body is the page itself, delivered as text rather than a rendered picture. Learn more about Geelong Online Casino Real Money.html.

If a site refuses to load at all, the usual suspects — dropped connections, filtering, stale caches, DNS and hosting trouble — appear in the site's notes on common loading failures. cURL separates those causes because each leaves a different trace. A DNS failure ends before any status line exists. A blocked address returns a refusal. A healthy origin answers in milliseconds, even if the page looks slow afterwards. Learn more about How To Check If Your Browser Is Using A Corrupted Profile.html.

What follows takes about ten minutes: install the tool, capture a first response, read the headers, chase connection problems, then repeat the test from a second network. Keep the terminal open beside your browser. Comparing what both show for the same address usually identifies the problem before you need to call anyone.

Why the Raw Response Beats the Browser

Browsers are generous layers over the raw exchange. They execute scripts, consult a cache, run extensions and content blockers, follow cookies, and replace a failed request with a tidy error page. All of that is convenient, and all of it hides the facts you need. cURL asks for the resource and shows what actually arrived, with nothing added and nothing removed.

That difference matters most when a site appears to work in one place and not another. A cached copy can make a broken page look healthy, and a stale DNS answer can send you to a decommissioned server. The headers name the software that answered (Server, X-Cache, CF-Cache-Status, Age), the content type, and the time the response was generated. On pages with several redirect hops — a local site covering Geelong's real-money casino scene, for instance — those headers show whether the delay happened at the edge or at the origin. Reading them turns the Geelong online casino walkthrough from guesswork into evidence.

The same exercise pays off on the sites Australians lean on during the working day: the Australian Taxation Office, my.gov.au, Australia Post, a bank portal, a council rates page. Several redirect between hosts or between http and https, and their behaviour often differs on mobile data compared with a fixed NBN connection. Seeing the full redirect chain tells you where the wait occurs.

Installing cURL and Running the First Request

macOS and most Linux distributions include curl out of the box. Windows 10 and 11 ship the binary too, but PowerShell reserves the word curl for Invoke-WebRequest, so a typed curl returns a Microsoft cmdlet with different options. Use curl.exe in PowerShell, or work in Command Prompt, where the real tool answers. On Debian and Ubuntu, sudo apt install curl fills the gap if the version check comes back empty.

Start with a header-only request, which asks for metadata without downloading the page:

curl -I https://www.nbn.com.au

A healthy reply looks like this:

HTTP/2 200
date: Tue, 14 May 2024 03:12:44 GMT
content-type: text/html; charset=utf-8
server: nginx
alt-svc: h3=":443"; ma=86400
cache-control: max-age=3600

Swap -I for -i and you get headers plus the start of the body, which confirms the content is right and not merely reachable. Add -sS to hide the progress meter while keeping error messages, --compressed so the transfer matches what a browser would request, and --max-time 30 so a stalled server cannot leave the command hanging. Shared family laptops here often run anything from an ageing Windows machine to a new Mac, so knowing both invocations saves a confusing ten minutes at the kitchen bench.

Reading Status Codes, Headers and Redirects

The anatomy of a response is simple: status line, headers, a blank line, then the body. Splitting them with curl -D headers.txt -o page.html https://example.com.au stores headers and page separately, ready to attach to a support ticket. The -w option adds a summary containing %{http_code}, %{time_namelookup}, %{time_connect} and %{time_total}.

Redirects deserve attention. A 301 or 302 says the address has moved; a 307 or 308 keeps the method intact, which matters for form submissions and API calls. The --max-redirs 5 stops a redirect loop from spinning forever, and -v prints every hop with its Location header, showing a chain running through a Melbourne CDN edge before landing on the origin.

Header names map directly to symptoms. A CF-Cache-Status of HIT or MISS, plus Age, shows whether a cached copy was served and how old it is. A MISS with a slow time_starttransfer points at the origin; a fast HIT suggests your path to the edge is fine. Strict-Transport-Security is worth checking on any site handling personal data, since it instructs browsers to refuse plain http — which aligns with the Australian Privacy Act 1988 and its Australian Privacy Principles, where organisations holding personal information must protect it in transit. A 429 with Retry-After tells you the server is rate limiting, so a slower retry beats hammering it.

When the Fault Sits Between You and the Server

Start at the bottom of the stack. DNS comes first: dig and nslookup show which resolver answered and how quickly, useful when a .com.au name fails to resolve on one network but works on another. Then comes the TCP connection to port 443 and the TLS handshake, and only then the HTTP request itself.

The verbose flag shows each stage as it happens:

*   Trying 203.0.113.24:443...
* Connected to www.example.com.au (203.0.113.24) port 443
* SSL certificate verify ok
* HTTP/2 200

If the attempt never reaches the Connected line, the fault sits below the web server: a dead router, a blocked port, or filtering by an ISP or agency. Australian homes on NBN fibre, fixed wireless or satellite occasionally hit router quirks, particularly when a supplied modem bridges or double-routes DNS. Free hotspot and airport Wi-Fi adds another layer, since captive portals answer first with a redirect to a login page and curl -L returns the portal rather than the site you wanted.

The eSafety Commissioner can require platforms to be blocked, and blocking orders issued under the Online Safety Act 2021 can produce an abrupt refusal rather than a timeout, so a refused connection deserves a second network before you assume the site is broken. Where the reply is a clean 200 but the browser still shows an error, the server is healthy and the fault is local — a corrupted browser profile check on the affected browser will confirm or rule that out before you blame the hosting.

A Repeatable Checklist for Australian Network Tests

Repeating the test from a second connection is where the diagnosis usually lands. Australian homes mostly reach the internet over NBN, but the technology underneath varies: fibre to the premises, hybrid fibre, copper, fixed wireless and satellite in regional and remote areas, with ADSL lingering in a few places. Each behaves differently under congestion. A response that succeeds over 5G mobile data on Telstra or Optus but times out at home points to the fixed line; the reverse points to your mobile network.

City habits add their own variables. Free Wi-Fi in central Melbourne and around major transport hubs, coffee shop hotspots with captive portals, and the habit of tethering a laptop from a phone on the tram all introduce middleboxes a home router never sees. Workplace and education filtering in Australia is also more likely to apply on those networks than on a private NBN line.

  • Run curl -sS -o /dev/null -w "%{http_code} %{time_total}\n" https://example.com.au for a one-line status and timing summary.
  • Add -I for a headers-only check and -L to follow redirects, keeping --max-redirs 5 so a loop fails fast.
  • Use -v when a request hangs and read the Trying and Connected lines to see whether it failed before or after the handshake.
  • Save evidence with -D headers.txt -o body.html so the raw response can be attached to a support request.
  • Confirm DNS with dig, note which resolver answered, then compare the same URL on home NBN and on 5G mobile data.
  • Repeat the test with --resolve to pin the request to one server address and rule DNS out as the variable.
  • Record the timestamp in AEST or AEDT with date when logging a fault, so complaints can be matched to provider records.

Run the sequence before reporting a problem: capture the status line, keep the headers, and repeat the same command from a second connection. If the response changes between networks, you have your cause. If it stays identical, the site or its hosting is the more likely culprit, and waiting to retry later is the sensible next move.

Then act on the result: reload the page in a private window or on another device, restart the router, and try again once the connection has had a minute to settle. Keep the transcript of the response — status code, headers and exact time — because it turns a vague complaint into something a provider, host or network engineer can act on straight away.