Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Indy HTTP download problem (https://www.delphipraxis.net/61491-indy-http-download-problem.html)

Skullschildi 22. Jan 2006 09:04


Indy HTTP download problem
 
Hallöchen, ich hab ma wieder ein Problem mit indyhttp. Diesmal ist es nicht der dämliche socketfehler 10061, aber es funzt trotzdem nicht.
Meldung:'http/1.1 301 Moved permanently'. was bedeutet das? und stimmt mein code überhaupt?
Delphi-Quellcode:
var
  Form1: TForm1;
   fn: Tfilename;
   fs : Tfilestream;
implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
fn := ('C:/download.htm');
 fs := Tfilestream.Create(fn, fmcreate);
  try
   HTTP.Get('http://www.yahoo.de', fs);
  except
  end;
fs.free;
end;
es ist zum :kotz:
mit google klappt des allerdings. Ichhabe keinen Proxy, aber einen router.

marabu 22. Jan 2006 09:35

Re: Indy HTTP download problem
 
Hallo,

setze doch einfach die Eigenschaft HandleRedirects deiner HTTP-Client Komponente auf TRUE.

Grüße vom marabu

Skullschildi 22. Jan 2006 10:11

Re: Indy HTTP download problem
 
dankeschön,, jetzt funktionierts.


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:27 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz