Http protocol: task1 create simple client server based on Http.

Requirement

nginx server source code (optional) 

use Yahoo or Google to telnet. Try different method
write a simple Client Server based on HTTP, which can handle one Get request and response with Hello World
use C
Server:
1. response with Hello World in http format
2. validate http request

Client:
1. Send Get http request
2. Send illegal http request

Reference

https://tools.ietf.org/html/rfc2616

http://www.jmarshall.com/easy/http/

Solution

Try different method:

 

posted @ 2018-08-09 14:29  soupsoup88  阅读(139)  评论(0编辑  收藏  举报