HTTP Requests on a C Server

preview_player
Показать описание
Parsing and handling request strings on a web server written from C.

Using the dictionary object created in the previous video, we will extract the relevant fields from a request string sent to our server by a client. These fields will tell our server what the client wants and how they want it - from there we need to handle the request, perform any necessary operations, and deliver a response.

This video is part of an open source library of tools available on GitHub:
Рекомендации по теме
Комментарии
Автор

16:55 when you call strcat() to concatenate content with response line and headers, you get undefined behaviour due to having strings with no null-terminators as args to strcat

Whoeveriam
Автор

strtok modifies the original buffer so gotta be careful.

pajeetsingh
Автор

isn't sizeof("method") the same thing as sizeof(char *) ?

Brad_Script