Ich hab mich jetzt hingesetzt, aber scheitere schon am Login mit Snoopy.
folgendes html-Formular funktionert:
Code:
<form method="POST" action="http://www.unonic.com/user/login_check.php" name="s" STYLE="display:inline">
<input type="hidden" name="LANG" value="DE">
<input type="text" name="domname" size="20" maxlength="26" style="font-family: monospace">
<select size="1" name="whatsub" tabindex="6">
<OPTION value=".de.tf">.de.tf </OPTION>
<OPTION value=".at.tf">.at.tf </OPTION>
<OPTION value=".co.at.tf">.co.at.tf </OPTION>
<OPTION value=".ch.tf">.ch.tf </OPTION>
<OPTION value=".net.tf">.net.tf </OPTION>
<OPTION value=".eu.tf">.eu.tf </OPTION>
<OPTION value=".us.tf">.us.tf </OPTION>
<OPTION value=".eu.tf">.eu.tf </OPTION>
<OPTION value=".ca.tf">.ca.tf </OPTION>
<OPTION value=".int.tf">.int.tf </OPTION>
<OPTION value=".edu.tf">.edu.tf </OPTION>
<OPTION value=".ru.tf">.ru.tf </OPTION>
<OPTION value=".pl.tf">.pl.tf </OPTION>
<OPTION value=".cz.tf">.cz.tf </OPTION>
<OPTION value=".bg.tf">.bg.tf </OPTION>
<OPTION value=".sg.tf">.sg.tf </OPTION>
</select>
<input type="password" name="pwd" size="20" maxlength="25" style="font-family: monospace">
<input type="submit">
</form>
folgender Code aber nicht:
PHP-Code:
include "../includes/Snoopy.class.php";
$snoopy = new Snoopy;
$snoopy->referer = "http://www.unonic.com/user/?LANG=DE";
$snoopy->agent = "(compatible; MSIE 4.01; MSN 2.5; AOL 4.0; Windows 98)";
$submit_url = "http://www.unonic.com/user/login_check.php";
$submit_vars['LANG'] = "DE";
$submit_vars['pwd'] = "***";
$submit_vars['domname'] = "***";
$submit_vars['whatsub'] = ".eu.tf";
$snoopy->submit($submit_url,$submit_vars,$submit_files);
while(list($key,$val) = each($snoopy->headers))
echo $key.": ".$val."<br>\n";
echo "<p>\n";
echo "<PRE>".($snoopy->results)."</PRE>\n";
ich bekomme dann folgende fehlermeldung:
Zitat:
Error! [ Error 404/500 ]The called document could not be found on this network or caused an unexpected error. Please go back and repeat your inquiry or select a function from the navigation menu.
|
Header werden folgende zurückgegeben:
Zitat:
0: HTTP/1.1 200 OK
1: Date: Mon, 28 Mar 2005 20:12:06 GMT
2: Server: Apache
3: Connection: close
4: Content-Type: text/html
|