Einzelnen Beitrag anzeigen

Ginko

Registriert seit: 30. Aug 2008
208 Beiträge
 
FreePascal / Lazarus
 
#2

AW: idHTTP dauerhafte Verbindung

  Alt 11. Mai 2013, 19:20
Vielleicht so:
Delphi-Quellcode:
      
with IdHTTP1 do
      begin
        Request.Accept:= 'text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1';
        Request.AcceptCharSet:= 'iso-8859-1, utf-8, utf-16, *;q=0.1';
        Request.AcceptEncoding:= 'deflate, gzip, identity, *;q=0';
        Request.Connection:= 'Keep-Alive'; //!!
        Request.ContentType:= 'application/x-www-form-urlencoded';
        Request.UserAgent:= 'Opera/9.80 (Windows NT 6.1; U; de) Presto/2.5.22 Version/10.51';
      end;
Das Keep-Alive hört sich jedenfalls danach an.
  Mit Zitat antworten Zitat