Lecture 22 Demo

HTTP GET & POST Requests - Interactive Demonstration

Classroom tip: Use this demo to understand GET vs POST, visualize request/response flow, and see how data is transmitted. Open browser DevTools console for request details.

GET Requests POST Requests Request Parameters Form Handling

GET Request Demonstration

GET requests send data in the URL query string. Data is visible and limited in size.
URL will appear here...

POST Request Demonstration

URL: http://localhost:8080/app/register

Request & Response Details

Request Information
No request sent yet
Response from Servlet
No response yet

GET vs POST Comparison

Feature GET POST
Data Location URL query string Request body
Visibility Visible in URL Hidden
Data Size Limited (~2KB) Unlimited
Security Less secure More secure
Bookmarking Can bookmark Cannot bookmark
Caching Can be cached Not cached
Use Case Retrieve/search data Submit/update data

Calculator: GET vs POST

Try the same operation with both GET and POST to see the difference.
Calculator Result
No calculation yet

Request/Response Logs