主要是这一段:if (strncmp("GET ",(char *)&(buf[dat_p]),4)!=0) {
// head, post and other methods:
//
// for possible status codes see:
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
plen=fill_tcp_data_p(buf,0,PSTR("HTTP/1.0 200 OK
Content-Type: text/html
<h1>200 OK</h1>&quot;));//这个创建网页不懂
goto SENDTCP;
}
if (strncmp(&quot;/ &quot;,(char *)&(buf[dat_p+4]),2)==0)
{
plen=fill_tcp_data_p(buf,0,PSTR(&quot;HTTP/1.0 200 OK
Content-Type: text/html
&quot;));
plen=fill_tcp_data_p(buf,plen,PSTR(&quot;<p>Usage: &quot;));
plen=fill_tcp_data(buf,plen,baseurl);
plen=fill_tcp_data_p(buf,plen,PSTR(&quot;password</p>&quot;));
goto SENDTCP;
}
cmd=analyse_get_url((char *)&(buf[dat_p+5]));
求帮忙解析一下。 |