Problem mit störrischem HTTP Server
-
Habs rausgefunden, damit es funktioniert muss ContentLength angegeben werden

Hallo erstmal,
es handelt sich um folgende Seite:
"http://www.banlist.nl/tools.php"
Da möchte ich gerne mein Programm was suchen lassen...Das ist ja normal kein Problem bei Browser antwortet er auch brav:
*Rauseditiert weil zu lang*Mein Http Request:
strcpy( cMsg, "POST /tools.php HTTP/1.0\r\nHost:www.banlist.nl\r\n" ); strcat( cMsg, "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*\r\n" ); strcat( cMsg, "Accept-Language: de\r\n" ); strcat( cMsg, "Connection: Keep-Alive\r\n" ); strcat( cMsg, "Content-Type: application/x-www-form-urlencoded\r\n" ); strcat( cMsg, "Referer: http://www.banlist.nl/tools.php\r\n\r\nnick= " ); strcat( cMsg, "MyName" ); strcat( cMsg, "&action=search_banlist");Hab ich eigentlich schon stark vom Browser abgeguckt... Trozdem ist die Antwort anders

Ein Hinweis darauf liefert Etheral:
Beim Browser steht bei den Post-Dateien
"Line-based text data: application/x-www-form-urlencoded"
nick=Test123456Bei meinem Programm nur
"Data (43 bytes)"
und der String wird da auch nicht seperat angezeigt!?Was mache ich falsch?
Danke schonmalHabs rausgefunden, damit es funktioniert muss ContentLength angegeben werden
