![]() |
UrlDownloadToFile mit einem Proxy?
Hallo,
ich lade wie folgt eine Datei runter:
Delphi-Quellcode:
Nun meine Frage - wie geht das wenn ein Proxy dazwischen steht? Etwa so? :gruebel:
...
Datei := 'www.meineseite.de/Datei.txt'; Ziel := PChar(UserAppDataDir + AppDataRootDir + AppDataProjectDir + '\Datei.txt'); UrlDownloadToFile(nil, Datei, Ziel, 0, nil); ...
Delphi-Quellcode:
...
Datei := 'server:port@www.meineseite.de/Datei.txt'; ... |
Re: UrlDownloadToFile mit einem Proxy?
Zitat:
|
Re: UrlDownloadToFile mit einem Proxy?
Und wenn man z.B. Firefox verwendet? :gruebel:
|
Re: UrlDownloadToFile mit einem Proxy?
Dann wird dennoch die Einstellung vom IE verwendet, da URLDownloadToFile über die Schnittstellen des IE läuft.
|
Re: UrlDownloadToFile mit einem Proxy?
Man kann ja Firefox verwenden, aber trotzdem die Proxy-Einstellungen im IE vornehmen ;). Ansonsten könntest Du noch auf Indy, ICS, Synapse etc. ausweichen.
|
Re: UrlDownloadToFile mit einem Proxy?
Zitat:
|
Re: UrlDownloadToFile mit einem Proxy?
Zitat:
Delphi-Quellcode:
uses
.., IdHTTP; ... var http: TIdHTTP; fs: TFileStream; begin fs := Tfilestream.create('zeildatei', fmCreate); try http := TIdHTTp.Create(nil); try http.Request.ProxyPassword := '**'; //etc. http.Get('http://domain.de/datei.txt', fs); finally http.free; end; finally fs.free; end; end; |
Re: UrlDownloadToFile mit einem Proxy?
Dann müsste man aber auch die Möglichkeit bieten, die Proxy-Konfiguration manuell einzugeben. Gab es bei IdHTTP nicht auch Proxyparams?
|
Re: UrlDownloadToFile mit einem Proxy?
Zitat:
Delphi-Quellcode:
Oder wie meinst du das?
http.Request.ProxyPassword := '**';
|
Re: UrlDownloadToFile mit einem Proxy?
also mit einem Passwort ist es doch bei einem Proxy nicht getan. Man sollte zumindest irgendwo angeben können wie denn der Proxy heisst. ;)
Sherlock |
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:51 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 by Thomas Breitkreuz