Autor Beitrag
Flamefire
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: Fr 21.11.08 22:31 
Mal ne Frage:

Wie kann ich (über indys?) mich bei einer Seite einloggen, und dann dort rumsurfen?

Der Login (idhttp.post) ist nicht das problem, sondern das Cookie.
Wie kriege ich das raus, und wie verwende ich das dann weiter?

Sample-Code, Tuts oder sontige Links wären nett.
Danke
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 24.11.08 12:49 
Dein Stichwort ist der "Cookie-Manager". Da gibts eine extra Komponente bei den Indy.
Einfach die Cookie-Manager Kompo auf dein Form ziehen und dann bei der IdHTTP acceptCookies auf true stellen und den Cookie-Manager bei der HTTP-Kompo registrieren. Fertig!

_________________
In the beginning was the word.
And the word was content-type: text/plain.