Autor Beitrag
TimonWorld
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 397



BeitragVerfasst: Di 09.01.07 22:23 
Hallo!

Ich hab da mal eine Frage, nachdem ich über die Suche erfolglos geblieben bin!
Ich möchte mit der WebBrowser-Komponente eine Seite mit Post-Zusätzen anhängen.
Es funktioniert nicht.

Hier der Code:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button2Click(Sender: TObject);
var
  ov1, ov2, ov3, post: OleVariant;
begin
  post := 'login[u]=benutzername&login[p]=passwort&Submit=login';
  ie.Navigate('http://www.seite.de/login',ov1,ov2,post,ov3);
end;


Mögliche Probleme: Die Seite verwendet Session-Cookies, ich benutze Delphi 3. Kann das vielleicht sein, dass man beim WebBrowser einen eigenen Cookie-Manager erstellen muss?!

Naja, ich würde mich jedenfalls über eine Antwort freuen!
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mi 10.01.07 00:40 
Hallo,

also grundsätzliches findest Du dort:
TWebBrowser and POST request
Vermute auch das Du da Probleme bekommst, mit Google gehts schon mal nicht. :(

Google Error:
Not Implemented
The server is unable to process your request.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )