Build Your Own HTTP Server

Offensive Security Practitioner, Cybersecurity Expert, and Security Engineer

About this course
Learn the fundamental protocol that powers the web. Write a server in C that parses HTTP requests, serves HTTP responses, and learn how to write defensive code. I will teach you to write a simple HTTP server. The course starts with the fundamentals of the HTTP protocol. I teach you about how HTTP works, and we learn to write some code to parse HTTP requests.
Lifetime Access
What you'll learn
Introduction
Course Introduction
Introduction to HTTP
Understanding HTTP Requests and Responses, HTTP Status Codes
Building the Basic Server
Creating the Socket Server, Handling Multiple Connections
Understanding HTTP Requests
Parsing the HTTP Request Line, Request Parsing Exercise, Parsing the HTTP Headers
Crafting HTTP Responses
Creating an HTTP Response Structure, Crafting HTTP Response Headers, Sending the HTTP Response, Serving Files over HTTP
Creating a Server Config
Registering Custom Handlers, Changing Port Numbers
Adding Support for HTTP Methods
Implementing GET and HEAD Methods, Implementing the POST Method
Error Handling and Optimization
Handling Errors in HTTP, Optimizing the Server
Server Deployment
Implementing URL Routing, Deploying Your HTTP Server
Conclusion
Advanced Features (Optional), Recap and Future Learning