Autor Beitrag
bawa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 49



BeitragVerfasst: Do 29.11.07 20:35 
Heyho,
ich hab zu dem thema schon ein bischen gesucht aber nichts gefunden was mein problem löst.
Folgendes:
ich will mich über eine IdHttp komponente beim Partnerprogramm von Amazon einloggen. Dazu benutze ich folgenden code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
  SL: TStringList; text:string;
begin

  SL := TStringList.Create;
  try
    SL.Add('password='+EditPassword.Text);
    SL.Add('email='+EditUserName.Text);
    SL.Add('__mk_de_DE=ÅMÅZÕÑ');
    SL.Add('path=/gp/associates/login/login.html');
    SL.Add('useRedirectOnSuccess=0');
    SL.Add('pageAction=1');
    edittext :=  IdHTTP1.Post('http://partnernet.amazon.de/gp/flex/sign-in/select.html', SL);
    source.Text := edittext;
  finally
    SL.Free;
  end;


leider bekomme ich als antwort vom server ich solle meine cookies aktivieren aber ich habe allowcookies auf 1, eine CookieManager Komponente reingezogen und Idhttp1.cookiemanager auf die cookiemanager komponente gesetzt.
Aber immernoch kommt die fehlermeldung!

Schonmal danke für eure antworten :)
bawa Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 49



BeitragVerfasst: Sa 01.12.07 20:14 
*push*
keiner ne idee?
bawa Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 49



BeitragVerfasst: Di 04.12.07 23:43 
push²
Mordilion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 96

WinXP Prof., Win2k Prof.
Delphi 7 Prof., Delphi 2009 Prof., PHP4/5, CSS, HTML
BeitragVerfasst: Mi 05.12.07 09:57 
Rufst du denn vorher noch eine andere Seite auf, wo du die Cookies bekommst?

Ich kenne das nur so, das die Cookies meist auf der Seite gesetzt werden, wo das Eingabeformular ist.

Versuch also mal als erstes mittels Get die Cookies vom Eingabeformular zu holen.


Gruß
Mordi

_________________
Für das große Chaos haben wir Computer. Die übrigen Fehler machen wir von Hand.
Der Mensch ist das wichtigste und kostbarste Peripheriegerät einer Computeranlage.