Fundamentals 5: HTTP Requests
by Renuka Bhusari
An HTTP Request is a message sent by a client to a server asking for a resource or for an action to be performed. HTTP requests and responses are how clients and servers communicate and interact. We'll cover the main types of requests: GET, HEAD, and POST. We'll also teach how to send requests using curl on the command line and the requests library in python!
Slides
Challenges
The following challenges in increasing difficulty are deployed to platform.acmcyber.com to practice the concepts covered in the slides.
- Challenge 1 -
fundamentals/deez
- Challenge 2 -
fundamentals/post-office
- Challenge 3 -
web/getit
- Challenge 4 -
web/get-ahead
- Challenge 5 -
web/gameing-session
- Challenge 6 -
web/max-verstappen
Resources
The following are resources covering different request methods and how to use curl and python to send requests.
- HTTP Request Methods: A resource explaining some HTTP Request Methods
- HTTP Requests Using Curl: Documentation for using curl in command line
- HTTP Requests In Python: Shows how to use the Python Requests Module
- Request Sessions in Python: Explains how to create a request session in Python