Autor Beitrag
Sauger Chris
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: So 20.09.09 13:33 
mahlzeit

mal ne frage hat sich schon mal jemand mit live.com login beschäftigt
möchte mich mit ner idhttp dort einlogen das prob ist nur da gibts ne art session id


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
procedure TForm1.Button1Click(Sender: TObject);
var
  slData: TStringList;
begin
slData := TStringList.Create;
try
  idhttp1.HandleRedirects := true;
  idhttp1.IOHandler := IdSSLIOHandlerSocketOpenSSL1;
  IdHTTP1.Request.UserAgent := 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10';

   sldata.add('PPSX=Passpor&PwdPad=IfYouAreReadingThisYouHaveTooM&type=');
   sldata.add('&login='+ edit1.Text); //email addy
   sldata.add('&passwd='+ edit2.Text);  //password
   sldata.add('&LoginOptions=3');
   sldata.add('&PPFT=session id');  //damit login klappt brauch man die id

   Memo1.lines.Add(IdHTTP1.post('https://login.live.com/ppsecure/post.srf?', slData));

finally
    slData.Free;
    IdHTTP1.Free;
end;
end;


so sieht die id aus:
Zitat:

B%216G3wpq3posE2ggoanFdqu4DTCsgMv6lngZHFtvHLDG*epVHopf1SlsI
IuBCfgYYq03VVNpdGe0Gt2N*VjQVKg%21oZaiWdxOU*Pg%21Ol7xpzo9*FmT
N0*f7zpWjTSZ03eWBdO5ApgmDpPcfdbmjymTXtBGxw1IWBErpT1qeI%24


beim cookie auslesen kommt sowas hier raus

Zitat:

CookieText: MSPOK=$uuid-0e514b5f-e93c-406d-9323-4655cf8d4878; path=/; domain=login.live.com; version=1
ServerCookie: MSPOK=$uuid-0e514b5f-e93c-406d-9323-4655cf8d4878; path=/; domain=login.live.com; version=1
Domain: login.live.com
CookieName: MSPOK


hoffe mir kann wer weiter helfen danke schon mal an alle =)


Zuletzt bearbeitet von Sauger Chris am So 20.09.09 13:52, insgesamt 1-mal bearbeitet
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19313
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 20.09.09 13:39 
Probiere einmal aus, ob es überhaupt ohne Skriptunterstützung im Browser funktioniert...

Denn normalerweise laufen da zumindest bei mir Skripte, sonst wäre die Seite nicht so schnell, und diese werden ja in TIdHttp nicht ausgeführt.

// EDIT:
Wie wäre es mit einem Zeilenumbruch in der ID? Selbst bei meiner relativ hohen Auflösung muss ich horizontal scrollen...
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: So 20.09.09 13:52 
mmm also ohne java geht die seite nicht :(

Zitat:
Windows Live ID erfordert JavaScript für die Anmeldung.
Dieser Webbrowser unterstützt JavaScript nicht, oder Skripts werden blockiert.


was für ne möglichkeit hab ich denn noch mich da irgendwie einzulogen ?
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19313
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 20.09.09 13:52 
Da bleibt dann nur TWebBrowser oder ähnliches.
Christian V.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: So 20.09.09 13:55 
Du musst "einfach" den JavaScript-Code mit Delphi nachbauen, dann funktioniert es. Könnte aber aufwändig werden ;)

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: So 20.09.09 13:58 
mmm ich glaub mit TWebBrowser bin ich besser dran Christian V.
aber danke :)