I am learning sockets and I wrote a simple web server program in C, When I use my web browser to send the get request like this "170.160.1.11:5000/media" I get the request in server like the following GET /media HTTP/1.1 Host:170.160.1.11:5000.. So my question is how to extract that "media" from the first line? Is there any function in c to break down the HTTP request?
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire