![]() |
indy http mit authorisierung
Hallo,
ich möchte per
Delphi-Quellcode:
eine mit username und passwort geschüzte seite bekommen.
idhttp.get(URL);
Aber idhattp hat keine username oder passwort property. Wie bekomm ich nun die athorisierung für die seite? (Passwort und Username hab ich vorliegen) MfG - Ghost007 |
Re: indy http mit authorisierung
Zitat:
Delphi-Quellcode:
Klappt bei mir (Indy 10) wunderbar. Und sollte bei älteren auch möglich sein ...
HTTP := TIdHTTP.Create(nil); // HTTP-Kompo wird dynamisch erstellt
with HTTP do begin Request.BasicAuthentication := True; Request.Username := 'user'; Request.Password := 'password'; end; |
Re: indy http mit authorisierung
ja, hab die request property auch grad gefunden :oops: wobei es bei mir wegen dem
Delphi-Quellcode:
nicht geklappt hat, wusste nicht das man des true setzen muss, danke :)
BasicAuthentication := True;
MfG - Ghost007 |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:07 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