hallo,
bekomme immer eine Fehlermeldung
was ist hier falsch?
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
request,content : string;
i : Integer;
begin
content := 'type=pocsag&address=1234567&flags=0&function=a&message=hallo1111';
request := 'POST /telegramin/alarmgeber/input.xml HTTP/1.1';
idHTTP1.Request.Charset := 'utf-8';
idHTTP1.Request.BasicAuthentication := true;
idHTTP1.Request.Username := '******';
idHTTP1.Request.Password := '******';
idHTTP1.Request.ContentType := 'application/x-www-form-urlencoded';
idHTTP1.Request.Host := '192.168.0.69';
idHTTP1.IOHandler.WriteLn(request);
idHTTP1.IOHandler.WriteLn(request);
for I := 1 to 20 do
Memo1.Lines.Add(idhttp1.IOHandler.ReadLn);
idHTTP1.Disconnect;
end;