AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke HTTP Download mit IdHTTP analog zu curl
Thema durchsuchen
Ansicht
Themen-Optionen

HTTP Download mit IdHTTP analog zu curl

Ein Thema von Paul Schmidt · begonnen am 26. Sep 2010 · letzter Beitrag vom 28. Sep 2010
 
Paul Schmidt

Registriert seit: 7. Feb 2006
22 Beiträge
 
#3

AW: HTTP Download mit IdHTTP analog zu curl

  Alt 26. Sep 2010, 19:13
als Testcode völlig simple:
Delphi-Quellcode:
var
  stream:TFilestream;
begin
  stream:=TFilestream.create('C:\foo.zip',fmcreate) ;
  idhttp1.Request.Username := 'username';
  idhttp1.Request.Password := 'password';
  idhttp1.Get('url',stream);
  idhttp1.disconnect;
  FreeAndNil(stream);
end;

Das Login auf der Seite funktioniert. Die login-Abfrage kommt.

Allerdings ist das Ergebnis als "foo.zip":
"Authorization Required

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
------------------------------------
Apache Server at..."
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 17: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