este es el codigo:
Código
HINTERNET Request,Session,Conexion; HINTERNET Nav; char Header[] = "Content-Type: application/x-www-form-urlencoded"; char HeaderForm[] = "Content-Type: multipart/form-data"; char Data[] = "user=Riki_89d&passwrd=loquesea"; char Form[] = "subject=Tema de prueba&message=este tema es ede prueba"; unsigned char Response[300]; DWORD SizeR = sizeof(Response); Session = InternetOpen("My Agen",INTERNET_OPEN_TYPE_PRECONFIG,0,0,0); if(!Session) { printf("Fallo al crear instancia Wininet.dll \n"); system("pause"); } Conexion = InternetConnect(Session,"foro.elhacker.net",INTERNET_DEFAULT_HTTP_PORT,NULL,NULL,INTERNET_SERVICE_HTTP,0,0); Request = HttpOpenRequest(Conexion,"POST","/login2.html","HTTP/1.1",NULL,NULL,INTERNET_FLAG_KEEP_CONNECTION,0); HttpSendRequest(Request,Header,strlen(Header),Data,strlen(Data)); Request = HttpOpenRequest(Conexion,"POST","/post2.html;start=0;board=49","HTTP/1.1",NULL,NULL,INTERNET_FLAG_KEEP_CONNECTION,0); HttpSendRequest(Request,HeaderForm,strlen(HeaderForm),Form,strlen(Form)); HttpQueryInfo(Request,HTTP_QUERY_STATUS_TEXT,&Response,&SizeR,0); MessageBox(0,Response,0,0);
y me da ese error no lo entiendo