Willkommen Gast
Du bist nicht angemeldet, um alle Funktionen des Forums zu nutzen musst du dich registrieren und anmelden. Die Registrierung ist natürlich völlig kostenlos und kann jeder Zeit wiederrufen werden.
Aktuelle Zeit: 25. Mai 2012 22:16
Mumble, Teamspeak, Ventrilo, Shoutcast, ..




Viper`at hat geschrieben:du brauchst eher nsc_srv




<?php
$username = 'user';
$passwort = 'passwort';
function send_post($host, $path, $data_to_send, $cookie)
{
$fp = fsockopen($host, 80);
fputs ($fp, "POST $path HTTP/1.1\r\n");
fputs ($fp, "Host: ". $host. "\r\n");
fputs ($fp, "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.12) Gecko/20050919 Firefox/1.0.7\r\n");
fputs ($fp, "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n");
fputs ($fp, "Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\r\n");
fputs ($fp, "Accept-Encoding: gzip,deflate\r\n");
fputs ($fp, "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n");
fputs ($fp, "Cookie: $cookie\r\n");
fputs ($fp, "Content-type: application/x-www-form-urlencoded\r\n");
fputs ($fp, "Content-length: ". strlen($data_to_send) ."\r\n");
fputs ($fp, "Connection: close\r\n\r\n");
fputs ($fp, $data_to_send);
while (!feof($fp))
{
$zeile = fgets($fp);
if(strpos($zeile, 'Set-Cookie: ') !== false)
{
$cookie .= substr($zeile, strlen('Set-Cookie: '), strpos($zeile, ";Path") - strlen('Set-Cookie: '));
}
}
fclose($fp);
return $cookie;
}
$cookie = send_post('www.domain.de', '/login.php', 'username=' .$username. '&password=' .$passwort, '');
$cookie = send_post('www.domain.de', '/aktion.php', 'aktion=bla, $cookie);
?>




Zurück zu Voiceserver / Webradio
| Mount and Blade Warband unter Debian 6 Forum: Sonstige Gameserver Autor: Gamewebi Antworten: 0 |
KB: Debian installieren Forum: Linux Autor: [GSA] Bot Antworten: 0 |
Adminplugin unter Debian für L4D2 Installieren? Forum: Left 4 Dead Autor: Acid Antworten: 1 |
Shoutcast 2.0 Beta und Linux Debian 64bit Problem Forum: Voiceserver / Webradio Autor: Andynator Antworten: 2 |
.cfg in Debian Server einfügen Forum: Counter Strike Source Autor: hussi130 Antworten: 0 |