Registriert seit: 21. Dez 2005
49 Beiträge
|
Re: idhttp.post (ssl login) connection closed gracefully -_-
26. Jun 2007, 18: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;
|
|
Zitat
|