Follow one real request

Verified lab · 15 min · Path challenge

Path challengeCloud foundations

Goal: Trace a real request to a live service: find its address, read its response headers, and read its certificate.

You need A terminal. No account.

Tools for each system

macOS includes dig, curl and openssl. On Linux, curl and openssl are usually there; get dig with sudo apt install dnsutils (Debian, Ubuntu) or sudo dnf install bind-utils (Fedora). On Windows 10 and 11, use PowerShell: it has Resolve-DnsName and curl.exe built in.

  1. Look up the address

    dig d-request-demo-d7de8315.computesphere.app
    

    Two addresses means two ways in; your client picks one.

    You should seeAn answer with two A records for the name, each with its own IPv4 address and a TTL of 300 seconds or less.

  2. Send the request with your code

    Your code is under Check your work at the end of this page. Put it in place of <your-code>.

    curl -v "https://d-request-demo-d7de8315.computesphere.app/?code=<your-code>"
    

    You should seeYour request (GET and its Host header), then a status line with 200, then response headers including x-learn-nonce.

  3. Read the certificate

    openssl s_client -connect d-request-demo-d7de8315.computesphere.app:443 \
      -servername d-request-demo-d7de8315.computesphere.app </dev/null 2>/dev/null \
      | openssl x509 -noout -subject -issuer -dates
    

    Write down the issuer. A wildcard subject covers every name one level under computesphere.app.

    You should seeThe subject *.computesphere.app, an issuer line naming who signed it, and start and expiry dates about three months apart.

  4. Prove you read the response

    Copy the value of x-learn-nonce from step 2, without the header name, into Check your work below and choose Check.

    You should seePassed.

Check yourself

Which hop did each command inspect?

Check your work

Your code …

curl -v "https://d-request-demo-d7de8315.computesphere.app/?code="