Autor Beitrag
schakal242
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 33

Win XP Prof.
D6 Prof
BeitragVerfasst: So 12.10.03 19:41 
Hallo,

ich habe ein kleines Programm zum automatischen runterladen und entzippen geschrieben geschrieben.
Bisher funktionierte es sehr gut.

Folgender Code bringt neuerdings die Fehlermeldung: 301 File moved permanently.

ausblenden Quelltext
1:
2:
  buffer := tfilestream.create('c:\testload.jpg' ,fmCreate or fmShareExclusive);
    Form1.idhttp1.Get('http://www.citytotal.info/xyxy.JPG');


Mit der Fastnet-Komponente gehts einwandfrei....

Ich glaube aber, dass der Provider irgendwas geändert hat.

Kennt jemand dieses Problem?

Gruss

Ulf

_________________
Wenn Du keins hast, aber eins brauchst, wirst Du es merken...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 12.10.03 20:58 
also der code kann schonmal gar nicht gehen, weil du das was du per indy runterlädst nicht in den buffer reinschreibst.
dann würde ich mal schauen per showmessage ( idhttp1.get('http://www.citytotal.info'));ob er den HTML code runterladen und anzeigen kann, wenn nciht, dann lässt dich der server nicht drauf.
dann solltest du mal in der kompo guggen ob du im header was verändern musst, oder ob der server vielleicht nur bestimmte useraents zulässt.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
schakal242 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 33

Win XP Prof.
D6 Prof
BeitragVerfasst: So 12.10.03 21:04 
Das war nur der Code zum testen. Im eigentlichen Programm schreibt er natürlich in den buffer...

Und mit der Fastnet Komonente NMHTTP gehts ja auch.

Gruss

Ulf

_________________
Wenn Du keins hast, aber eins brauchst, wirst Du es merken...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 13.10.03 16:13 
hast du das mal mit der showmessage ausprobiert ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.