Back to Training Resources
Web Security

HTTP AND BROWSER DEVTOOLS BASICS

A beginner-friendly guide to HTTP requests, responses, browser developer tools, and web challenge observation.

Layer Zero
web-securityhttpdevtoolsbrowserbeginner

HTTP And Browser DevTools Basics

Web challenges usually come down to understanding what the browser sends, what the server returns, and where the application makes trust decisions. Browser developer tools let you inspect that conversation without guessing.

This guide focuses on the basics: URLs, methods, status codes, headers, cookies, storage, and the browser Network tab.

📋 NOTES
Practice this topic with web security challenges in the Layer Zero Lab.
Review Beginner Web Security Foundations if you need the broader context first.
Use DevTools to answer specific questions, not just to click around randomly.

Prerequisites

  • Basic comfort using a web browser
  • A training website or lab target you are authorized to inspect
  • Willingness to take notes about requests and responses

HTTP In One Minute

HTTP is a request and response protocol.

PieceMeaning
RequestWhat the browser asks the server for
ResponseWhat the server sends back
MethodThe action style, such as GET or POST
PathThe resource being requested, such as /login
HeaderMetadata sent with a request or response
BodyOptional data sent with a request or response
Status codeNumber that summarizes the response result

Example request:

http
GET /profile HTTP/1.1
Host: example.test
Cookie: session=abc123

Example response:

http
HTTP/1.1 200 OK
Content-Type: text/html

<h1>Profile</h1>

Common HTTP Methods

MethodCommon UseBeginner Notes
GETRead or request a resourceParameters may appear in the URL
POSTSubmit dataOften used for forms and JSON APIs
PUTReplace or update dataCommon in APIs
PATCHPartially update dataCommon in APIs
DELETEDelete dataShould require authorization
OPTIONSAsk what methods are supportedSometimes useful for API discovery

Methods are clues, not guarantees. The server decides what a request actually does.

Common Status Codes

CodeMeaningWhat To Ask
200OKDid the server return the expected content?
301 or 302RedirectWhere did it send the browser?
400Bad requestDid the input shape break something?
401UnauthorizedIs authentication missing or invalid?
403ForbiddenIs the user authenticated but not allowed?
404Not foundIs the path wrong, hidden, or removed?
500Server errorDid the application reveal useful error details?

Status codes help you understand behavior, but read the response body too.

URL Parts

Example:

text
https://lab.example.test:443/search?q=test&page=2#results
PartExample
Schemehttps
Hostlab.example.test
Port443
Path/search
Query stringq=test&page=2
Fragment#results

The fragment is handled by the browser and is usually not sent to the server.

Browser DevTools Areas

Most modern browsers include developer tools. The names vary slightly, but the core ideas are similar.

AreaUse It For
Elements or InspectorViewing and editing the current page structure
ConsoleSeeing JavaScript errors and running small browser-side tests
NetworkInspecting requests and responses
Application or StorageViewing cookies, local storage, session storage, and cache
SourcesReading loaded JavaScript and source files

For web security beginners, the Network and Storage views are usually the most important.

Network Tab Workflow

  1. Open DevTools.
  2. Go to the Network tab.
  3. Enable "Preserve log" if you need to keep requests across redirects.
  4. Perform one action in the application.
  5. Click the relevant request.
  6. Inspect method, path, status, headers, cookies, query parameters, and body.
  7. Repeat with one changed input or account state.

Do not try to inspect every request at once. Pick the request tied to the action you performed.

Cookies And Storage

Cookies and browser storage often matter in beginner challenges.

Storage TypeSent Automatically To Server?Common Use
CookieYes, when domain/path rules matchSessions, preferences, tracking
Local storageNoBrowser-side app data
Session storageNoTemporary browser-side app data
CacheSometimes indirectlySaved copies of resources

Important distinction: local storage is visible to the user but is not automatically sent with every request like cookies are.

⚠️ WARNING

Do not treat anything stored in the browser as secret from the user. Hidden client-side data can usually be inspected or modified.

Comparing Requests

Comparison is one of the strongest beginner techniques.

Try comparing:

  • Logged out versus logged in
  • Normal user versus admin user
  • Valid input versus invalid input
  • Your user ID versus another user ID in an authorized lab
  • A request before and after clicking a button

Ask:

  • What changed?
  • What stayed the same?
  • Which value appears user-controlled?
  • Which value does the server appear to trust?

Common Beginner Findings

ObservationPossible Meaning
A hidden form field controls price, role, or user IDThe server may be trusting client-side data
A cookie contains readable role dataThe session or authorization model may be weak
JavaScript contains API pathsClient-side files may reveal routes to inspect
Different users can access similar numbered URLsPossible authorization issue
Error response reveals stack trace or SQL textDebug information may be exposed

These are starting points. Verify behavior before calling something a vulnerability.

Beginner Web Workflow

  1. Use the feature normally.
  2. Identify the request that matches your action.
  3. Write down method, path, status code, and important parameters.
  4. Change one input in the application.
  5. Compare the new request and response.
  6. Decide whether the server or the browser enforced the rule.
  7. Verify with the smallest test that proves the behavior.

Practice Prompts

Use these prompts in an authorized lab:

  • Find the request sent when logging in.
  • Identify one cookie and explain when it is sent.
  • Find one JavaScript file loaded by the page.
  • Change a form input and observe which request field changes.
  • Compare a 401, 403, and 404 response if the lab provides them.

Summary

Browser DevTools are a visibility tool. They help you see the web conversation instead of guessing.

Remember these key points:

  • HTTP uses requests and responses.
  • Methods and status codes are clues.
  • Cookies are sent to the server; local storage is not automatically sent.
  • The browser is not a security boundary.
  • Compare requests to find what changed.
  • Verify whether the server enforces the rule.

Use DevTools to make observations, then let those observations guide your next test.