Cant send login-dtata for Webmail-APP SOGo
Posted: Tue Dec 22, 2020 12:24 pm
Hello,
i tried to send login-data to a webmailapplication, the name is SOGo.
In developerconsole of chrome i fround the url to login:
Request URL: https://mail.domainname.com/SOGo/connect
{userName: "mb@domainname.com", password: "verysecret", rememberLogin: 1}
password: "verysecret"
rememberLogin: 1
userName: "mb@domainname.com"
And when i try this delphi-code:
i get this errormessage in the chromium browser:
can anyone help me to solve this problem?
greetings
marc
i tried to send login-data to a webmailapplication, the name is SOGo.
In developerconsole of chrome i fround the url to login:
Request URL: https://mail.domainname.com/SOGo/connect
{userName: "mb@domainname.com", password: "verysecret", rememberLogin: 1}
password: "verysecret"
rememberLogin: 1
userName: "mb@domainname.com"
And when i try this delphi-code:
Code: Select all
procedure TChildForm.Button2Click(Sender: TObject);
var
Header: ICefStringMultimap;
Data: ICefPostData;
Request: ICefRequest;
begin
Request := TCefRequestRef.New;
Request.Url := 'https://mail.domainname.com/SOGo/connect';
Request.Method := 'POST';
Request.Flags := UR_FLAG_NONE;
Header := TCefStringMultimapOwn.Create;
Header.Append('Content-Type', 'application/x-www-form-urlencoded');
Request.SetHeaderMap(Header);
Data := TCefPostDataRef.New;
Data.AddElement(CreateField('userName=mb@domainname.com'));
Data.AddElement(CreateField('&password=verysecret'));
Data.AddElement(CreateField('&rememberLogin=1'));
Request.PostData := Data;
Chromium1.LoadRequest(Request);
end;
Code: Select all
{"LDAPPasswordPolicyError": 65535}
greetings
marc