void CTimedThread::DoHttpPost( void ) { char PostData[1024] = {0}; char data[255] = {0}; result= 1; sprintf(PostData,"APP=%s&ADAPTER=%s&MACHINE=%s&VERSION=%s&VALUES=%s",App,Adapter,FullName,Version,Values); HTTP *http = new HTTP; LPCTSTR pData = 0x00; UINT Length = 0; int ret_code; ret_code = http->SetContentType("application/x-www-form-urlencoded"); ret_code = http->SetPostData(PostData,strlen(PostData) ); ret_code = http->Post("http://www.imagesafe.biz/docugate/index.asp"); if (ret_code == 0 ) { http->GetTransferredData( pData, Length); if ( strstr( pData,"***TERMINATE***") ) result = 0; } delete http; }