THM - Web Application Basics
THM - Web Application Basics
http://user:[email protected]:80/view-room?id=1#task3
HTTP Requests: Sent by the user to trigger actions on the web application.
HTTP Responses: Sent by the server in response to the user’s request.
HTTP Methods
GET / POST / PUT / DELETE / PATCH / HEAD / OPTIONS(only retrieves headers) / TRACE /
CONNECT
Common Request Body Formatting ⟶ URL Encoded / Form Data(Multipart) / JSON / XML
Status Codes
Common Status Codes ⟶ 100 (Continue) / 200 (OK) / 301 (Moved Permanently) / 404 (Not
Found) / 500 (Internal Server Error)
Example Actions:
Real-World Examples
GitHub API:
/users/{username} retrieves public profile information of GitHub users.
Example: https://api.github.com/users/octocat.
Twitter API:
/users/{id} fetches Twitter user details.
Example: https://api.twitter.com/2/users/{id}.
E-commerce API:
/users/{id}/orders retrieves order history for a specific user.