Transcript

更多关于http 1.1的信息请参考RFC2616。

2、本实验请求与响应实例

请求:

GET / HTTP/1.1

响应:

HTTP/1.1 200 OK

Content-type: text/html

六、实验步骤

1、 创建http_thread任务。

OSTaskCreate(http_thread, (void *)0, (void *)&httpTaskStack[HTTP_TASK_SIZE - 1], HTTP_TASK_PRIO);

2、 编写HTTP服务程序。

static char indexdata[] = \

" \

A test page \

\

This is a test page! \


Top Related