Einzelnen Beitrag anzeigen

Relicted

Registriert seit: 24. Jan 2006
Ort: Iserlohn
646 Beiträge
 
Delphi 10.4 Sydney
 
#2

Re: IDHTTP in einer DLL dynamisch erstellen? Wie?

  Alt 10. Okt 2008, 12:24
Entweder dynamisch erstellen...

Delphi-Quellcode:
var
  IdHTTP1: TIdHTTP;

  IdHTTP1 := TIdHTTP.Create(Self);
  with IdHTTP1 do
  begin
    Name := 'IdHTTP1';
    MaxLineAction := maException;
    ReadTimeout := 0;
    AllowCookies := True;
    ProxyParams.BasicAuthentication := False;
    ProxyParams.ProxyPort := 0;
    Request.ContentLength := -1;
    Request.ContentRangeEnd := 0;
    Request.ContentRangeStart := 0;
    Request.ContentType := 'text/html';
    Request.Accept := 'text/html, */*';
    Request.BasicAuthentication := False;
    Request.UserAgent := 'Mozilla/3.0 (compatible; Indy Library)';
    HTTPOptions := [hoForceEncodeParams];
  end;
...oder ein datenmodul zu deiner dll hinzufügen, das ding erzeugen und drauf zugreifen.

gruß
reli
  Mit Zitat antworten Zitat