Postear y loguear en foro con Wininet

Ricard Comas Xancó
07 de Agosto del 2011
Hola que tal,veran intento postear en un foro externo a este pero no lo consigo,tnega las cabeceras y TODO correcto,me da kmkucha rabia ya que esta coreecto peor no funciona,aver si alguien puede echarme un cable,aqui les traigo el codigo:


char Cabecera[] = "Content-Type: application/x-www-form-urlencoded";
char Datos[] = "vb_login_username=USER&vb_login_password=PASS";
char TemaN[] = "asunto=Tema_Prueba&message=Probando_un_nuevo_Multiposter&taglist=Rikicopor,fdertf,sfsdf,gsdfgdfg,rwerwer";

Sesion = InternetOpen("MyAgen",INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,0);
Conexion = InternetConnect(Sesion,"www.elforo.com",INTERNET_DEFAULT_HTTP_PORT,NULL,NULL,INTERNET_SERVICE_HTTP,NULL,NULL);
if(!Conexion)
{
MessageBoxA(0,"Error al conectarse","Error conexion",0);
}

Peticion = HttpOpenRequest(Conexion,"POST","/login.php?do=login",NULL,NULL,NULL,INTERNET_FLAG_DONT_CACHE,1);
if(HttpSendRequest(Peticion,Cabecera,strlen(Cabecera),Datos,strlen(Datos)) == false)
{
MessageBoxA(0,"Error al iniciar sesión","Error",MB_ICONERROR);
}

HINTERNET TempP = HttpOpenRequest(Conexion,"POST","/newthread.php?do=newthread&f=55",NULL,NULL,NULL,INTERNET_FLAG_DONT_CACHE,1);
if(HttpSendRequest(TempP,Cabecera,strlen(Cabecera),TemaN,strlen(TemaN)) == false)
{
MessageBoxA(0,"Error","",0);
}



que nada que no hace absolutamente nada :( eso en teoria debe inicar seison i ir a la pagina de postear en un tema especifico pero no se crea el tema,actualzio la pagina i no sale el tema :(


gracias de antemano