Mit Digest Authetifizierung bekomm ich: HTTP/1.1 400 Bad Request
Code:
var MemoryStream: TMemoryStream;
begin
MemoryStream := TMemoryStream.Create;
try
IdHTTP1.Request.URL := 'http://
localhost/
api';
IdHTTP1.Request.Authentication := TIdDigestAuthentication.Create;
IdHTTP1.Request.Authentication.Username := 'meinApiUser';
IdHTTP1.Request.Authentication.Password := 'meinApiKey';
IdHTTP1.get(IdHTTP1.Request.URL, MemoryStream);
MemoryStream.Position := 0;
Memo1.Lines.LoadFromStream(MemoryStream);
finally
MemoryStream.Free;
end;