push
string GetCookies(string sSource)
{
int sicherheit;
size_t PosLeft ;
size_t PosRight;
string left="Set-Cookie: ";
string right=";";
string cookies;
PosLeft = sSource.find(left);
PosRight = sSource.find(right);
while (PosLeft != string::npos && PosRight != string::npos)
{
PosLeft = sSource.find(left,PosLeft);
PosRight = sSource.find(right,PosLeft);
sicherheit++;
if (PosLeft != string::npos && PosRight != string::npos)
{
PosLeft += left.length();
cookies += sSource.substr(PosLeft, PosRight - PosLeft);
cookies +=";";
}
if (sicherheit>100000) break ;
}
return cookies;
} // ==> GetCookies(string sSource)
source=HTTPRequest("www.de66.die-staemme.de","/login.php?sid="+ssource+"&secret=0&ppmg_sso=0&mobile_no_force=0","", cookies);
cookies=GetCookies(source);
save("login2.txt", source);
Schau dir doch einfach mal die FUnktion an und Google nach dem WSAGetLastError, da erkennt man meistens genau was schief lief.Quote:
oke doch noch net beendet
das nächste get wo man sid braucht (siehe spoiler 1 wie ich das gemacht hab)
in login2.txt erscheint nurPHP Code:source=HTTPRequest("www.de66.die-staemme.de","/login.php?sid="+ssource+"&secret=0&ppmg_sso=0&mobile_no_force=0","", cookies);
cookies=GetCookies(source);
save("login2.txt", source);
"fail 3"
Zuerst einmal, benutz doch source.substr(...)Quote:
ich habe einen sehr komischen fehler gefunden.
habe mir die sidsuche nochmal genauer angesehen.
da es nicht richtig gefiltert hat habe ich den code oft geändert, damits passt und nur die sid ausgegeben wird.
das ergebnis:
weis einer von euch wiso da -90 rein muss ??? das kapier ich net.
und es hat nichts gebracht immer noch fail 3
Wie es scheint, liegt es in irgendeiner Weise an irgendeinem fopen/fwrite usw.Quote:
LOL! I changed the error logger's buffer size to 1 a few days ago to test something, and I forgot to change it back to a reasonable number! So it was flushing the buffer every line
I guess that means opening a file in append mode (fopen(fp, "at") ) gives error 183 then. Oh well! Thanks
edit noch n fehlerart.Quote:
This error also occurs when you are trying to name the local socket (assign local address and port number) with bind, but Windows Sockets doesn't ascribe this error to bind, for some unknown reason.