char accept[] = "Accept: */*";
char frmdata[] = "name=str1&sex=str2&psw=str3&pswc=str4&quesion=str5&answer=str6&e_mail=str7";
HINTERNET hSession = InternetOpen("MyAgent", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
HINTERNET hConnect = InternetConnect(hSession, "www.cnyu.cn", INTERNET_DEFAULT_HTTP_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 1);
HINTERNET hRequest = HttpOpenRequest(hConnect, "POST", "bbs/chkreg.asp", NULL, NULL, (LPCSTR *)&accept, INTERNET_FLAG_NO_COOKIES , 1);
HttpSendRequest(hRequest, "Content-Type: application/x-www-form-urlencoded", -1, (LPVOID)frmdata, sizeof(frmdata));
InternetCloseHandle(hRequest);
InternetCloseHandle(hConnect);
InternetCloseHandle(hSession);