Hallo,
ich möchte mich in einen gmail account einloggen mit hilfe der indy komponenten. mein problem liegt daran das recht viele cookies benutz werden.wenn man alleine auf
www.gmail.com geht wird man mehrfach weitergeleitet und es werden mehrere cookies erstellt. das ganze sieht dann so aus :
New Message Log Window....
Client opened: total 1
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79:
| +++GET 90+++ GET / HTTP/1.1 Content-Type: text/html Host: www.gmail.com Accept: text/html, */* User-Agent: Mozilla/3.0 (compatible; Indy Library) Connection: keep-alive Accept-encoding: gzip, deflate
+++RESP 90+++ HTTP/1.1 301 Moved Permanently Location: http://mail.google.com/mail/ Set-Cookie: PREF=ID=34672cc353fffe21:TM=1126467271:LM=1126467271:S=Dg5unf7CqRYKJ7HA; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com Content-Type: text/html Server: GWS/2.1 Transfer-Encoding: chunked Content-Encoding: gzip Date: Sun, 11 Sep 2005 19:34:31 GMT Cache-Control: private, x-gzip-ok="" Connection stored: 90 +++CLOSE 90+++ Client closed: total 0 Client opened: total 1
+++GET 91+++ GET /mail/ HTTP/1.1 Content-Type: text/html Host: mail.google.com Accept: text/html, */* User-Agent: Mozilla/3.0 (compatible; Indy Library) Connection: keep-alive Accept-encoding: gzip, deflate
+++RESP 91+++ HTTP/1.1 302 Moved Temporarily Set-Cookie: GMAIL_AT=EXPIRED;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GMAIL_PREFS=EXPIRED;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GMAIL_LOGIN=EXPIRED;Domain=.google.com;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GMAIL_STAT=EXPIRED;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GMAIL_RTT=EXPIRED;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GBE=EXPIRED;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GV=; Domain=mail.google.com; Expires=Sat, 10-Sep-05 19:34:32 GMT; Path=/ Set-Cookie: GV=; Domain=mail.google.com; Expires=Sat, 10-Sep-05 19:34:32 GMT; Path=/mail Set-Cookie: GX=EXPIRED;Path=/mail;Expires=Mon, 01-Jan-1990 00:00:00 GMT Location: https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl<mpl=googlemail Cache-control: private Content-Length: 0 Content-Type: text/html Server: GFE/1.3 Date: Sun, 11 Sep 2005 19:34:32 GMT Connection stored: 91 +++CLOSE 91+++ Client closed: total 0 Client opened: total 1
+++SSL:GET 92+++ SSL cipher SSLv2 DES-CBC3-MD5 (168 bits) GET /accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl<mpl=googlemail HTTP/1.1 Content-Type: text/html Host: www.google.com:443 Accept: text/html, */* User-Agent: Mozilla/3.0 (compatible; Indy Library) Connection: keep-alive Accept-encoding: gzip, deflate
+++SSL:RESP 92+++ SSL cipher TLSv1 DES-CBC3-SHA (168 bits) HTTP/1.1 200 OK Cache-control: no-cache Pragma: no-cache Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Content-Encoding: gzip Date: Sun, 11 Sep 2005 19:34:32 GMT Server: GFE/1.3 Connection stored: 92 +++CLOSE 92+++ Client closed: total 0 Client opened: total 1 |
es müssen also diese cookies gesetzt werden.
Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
| Set-Cookie: PREF=ID=34672cc353fffe21:TM=1126467271:LM=1126467271:S=Dg5unf7CqRYKJ7HA; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com Set-Cookie: GMAIL_AT=EXPIRED;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GMAIL_PREFS=EXPIRED;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GMAIL_LOGIN=EXPIRED;Domain=.google.com;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GMAIL_STAT=EXPIRED;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GMAIL_RTT=EXPIRED;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GBE=EXPIRED;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: GV=; Domain=mail.google.com; Expires=Sat, 10-Sep-05 19:34:32 GMT; Path=/ Set-Cookie: GV=; Domain=mail.google.com; Expires=Sat, 10-Sep-05 19:34:32 GMT; Path=/mail Set-Cookie: GX=EXPIRED;Path=/mail;Expires=Mon, 01-Jan-1990 00:00:00 GMT |
wenn ich mir jetzt aber beim cookie manager ausgeben lasse welche er erstellt sind es nur diese :
Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9:
| GMAIL_AT=EXPIRED; path=/; domain=mail.google.com GMAIL_PREFS=EXPIRED; path=/; domain=mail.google.com GMAIL_LOGIN=EXPIRED; path=/; domain=.google.com GMAIL_STAT=EXPIRED; path=/; domain=mail.google.com GMAIL_RTT=EXPIRED; path=/; domain=mail.google.com GBE=EXPIRED; path=/; domain=mail.google.com path=/; domain=mail.google.com path=/mail; domain=mail.google.com GX=EXPIRED; path=/mail; domain=mail.google.com |
mir sieht es so aus als würde der cookiemanager die zwei GV nicht erstellt weil sie keinen wert haben und das PREF=ID nicht erstellt wegen dem = im namen.
gibts da ne möglichkeit oder muss ich mir an der stelle jetzt die riesen arbeit machen mir die cookies ausm header zu suchen und dann selbstständig zu erstellen oder gibts da nen anderen trick? vielleicht kann ja auch jemand ne besser komponente empfehlen als die indy.
achja benutze die 7er Indy
danke für die hilfe schonmal
gruß
peacemaker2k