Linux下用C实现Ping监测与HTTP报文上传(二)

2014-11-23 19:56:35 · 作者: · 浏览: 67
f HTTP/1.1\r\nHOST: %s\r\nCONNECTION: CLOSED\r\n\r\n",strIP,strURL,pRet[1],strIP);
else if(nCount == 6)
sprintf(sendbuf,"GET http://%s/CPing/update/http.php name=%s&lost=%f&avg=%f HTTP/1.1\r\nHOST: %s\r\nCONNECTION: CLOSED\r\n\r\n",strIP,strURL,pRet[1],pRet[3],strIP);
else
sprintf(sendbuf,"GET http://%s/CPing/update/http.php name=%s&lost=-1&lost=-1 HTTP/1.1\r\nHOST: %s\r\nCONNECTION: CLOSED\r\n\r\n",strIP,strURL,strIP);


// ProcessSQLUpdate(strURL,strIP,nPort,sendbuf);
/*
printf("Min Value: %f\n",pRet[2]);

printf("Avg Value: %f\n",pRet[3]);
printf("Max Value: %f\n",pRet[4]);
printf("MDev Value: %f\n",pRet[5]);
*/
return 0;
}


C语言梳理一下,分布在以下10个章节中: