Einzelnen Beitrag anzeigen

smc

Registriert seit: 21. Dez 2005
49 Beiträge
 
#2

Re: idhttp.post (ssl login) connection closed gracefully -_-

  Alt 26. Jun 2007, 17:26
Delphi-Quellcode:
name:= ini.ReadString('Account', 'Username', '');
pwd:= ini.ReadString('Account', 'Password', '');


data := TIdMultiPartFormDataStream.Create;
  try
    data.AddFormField('username', name);
    data.AddFormField('password', pwd);

source:= IdHTTP1ssl.Get('http://site/');
delay(1000);

memo1.text:= IdHTTP1ssl.Post('https://site/login', data);
  finally
    data.Free;
  end;
  Mit Zitat antworten Zitat