![]() |
IDHTTP in einer DLL dynamisch erstellen? Wie?
Hallo, ich muss in meiner Dll einen IDHTTP erstellen weil ich zur Ausführung einer funktion was runterladen muss.
wie kann ich dies machen? vielen dank! |
Re: IDHTTP in einer DLL dynamisch erstellen? Wie?
Entweder dynamisch erstellen...
Delphi-Quellcode:
...oder ein datenmodul zu deiner dll hinzufügen, das ding erzeugen und drauf zugreifen.
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; gruß reli |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:55 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz